diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-05-28 16:17:13 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-04 11:25:34 +0200 |
commit | b614604effda51ca7c76c8901be78ced62b642b2 (patch) | |
tree | 971fc02905cf3e0c75ef4fb00d93ce72b43936cb /plugins/base/frontend/build.gradle.kts | |
parent | 4065a65fe3294e0ddf54f5756380f7dc1aa032b2 (diff) | |
download | dokka-b614604effda51ca7c76c8901be78ced62b642b2.tar.gz dokka-b614604effda51ca7c76c8901be78ced62b642b2.tar.bz2 dokka-b614604effda51ca7c76c8901be78ced62b642b2.zip |
Update TS migration to current dev, move to a common package, rename to frontend
Diffstat (limited to 'plugins/base/frontend/build.gradle.kts')
-rw-r--r-- | plugins/base/frontend/build.gradle.kts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/base/frontend/build.gradle.kts b/plugins/base/frontend/build.gradle.kts new file mode 100644 index 00000000..d1141a4c --- /dev/null +++ b/plugins/base/frontend/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + id("com.moowork.node") version "1.3.1" +} + +task("generateFrontendFiles") { + dependsOn("npm_install", "npm_run_build") +} + +tasks { + "npm_run_build" { + inputs.dir("$projectDir/src/main/components/") + inputs.files("$projectDir/package.json", "$projectDir/webpack.config.js") + outputs.dir("$projectDir/dist/") + } + clean { + delete = setOf("$projectDir/node_modules", "$projectDir/dist/", "$projectDir/package-lock.json") + } +} |