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