Skip to content

Commit

Permalink
restoring server stats task
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Jul 9, 2023
1 parent c4de2c2 commit 4416760
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,21 @@ tasks {
workingDir = file("${rootProject.buildDir.resolve("js").resolve("packages/Coupling-server")}")
}

// register<NodeExec>("serverStats") {
// dependsOn(compileKotlinJs, processResources, compileProductionExecutableKotlinJs)
// mustRunAfter(clean)
//
// nodeCommand = "webpack"
// arguments = listOf(
// "--config",
// project.projectDir.resolve("webpack.config.js").absolutePath,
// "--profile",
// "--json=${rootDir.absolutePath}/compilation-stats.json"
// )
// environment("NODE_ENV" to "production")
// workingDir = file("${rootProject.buildDir.resolve("js").resolve("packages/Coupling-server")}")
// }
register<NodeExec>("serverStats") {
setup(project)
dependsOn(compileKotlinJs, jsProcessResources, compileProductionExecutableKotlinJs)
mustRunAfter(clean)

nodeCommand = "webpack"
arguments = listOf(
"--config",
project.projectDir.resolve("webpack.config.js").absolutePath,
"--profile",
"--json=${rootDir.absolutePath}/compilation-stats.json"
)
environment("NODE_ENV" to "production")
workingDir = file("${rootProject.buildDir.resolve("js").resolve("packages/Coupling-server")}")
}

val copyServerIcons by registering(Copy::class) {
from("public")
Expand Down

0 comments on commit 4416760

Please sign in to comment.