aboutsummaryrefslogtreecommitdiff
path: root/server/frontend/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'server/frontend/build.gradle.kts')
-rw-r--r--server/frontend/build.gradle.kts17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/frontend/build.gradle.kts b/server/frontend/build.gradle.kts
new file mode 100644
index 0000000..72fe6ea
--- /dev/null
+++ b/server/frontend/build.gradle.kts
@@ -0,0 +1,17 @@
+import com.github.gradle.node.pnpm.task.PnpmTask
+
+plugins {
+ id("com.github.node-gradle.node") version "7.1.0"
+ `java-library`
+}
+
+val webDist by tasks.register("webDist", PnpmTask::class) {
+ dependsOn(tasks.pnpmInstall)
+ args.addAll("build")
+ outputs.dir("dist")
+}
+tasks.jar {
+ from(webDist) {
+ into("ledger-web-dist/")
+ }
+}