blob: 990b7828062ba599b4efef9011f8af4a79677a6d (
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"
}
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 }
}
register("generateFrontendFiles") {
dependsOn(npmInstall, npmRunBuild)
}
clean {
delete = setOf("$projectDir/node_modules", "$projectDir/dist/")
}
}
|