blob: 645ef82641ad1a12d4d015052a686454cd06c08c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
plugins {
id("com.moowork.node") version "1.3.1"
}
task("generateFrontendFiles") {
dependsOn("npmInstall", "npm_run_build")
}
tasks {
val npmRunBuild by registering {
inputs.dir("$projectDir/src/main/")
inputs.files("$projectDir/package.json", "$projectDir/webpack.config.js")
outputs.dir("$projectDir/dist/")
outputs.cacheIf { true }
}
clean {
delete = setOf("$projectDir/node_modules", "$projectDir/dist/")
}
}
|