summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 60c2925..d505ac1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -87,3 +87,23 @@ spotless {
group 'eu.mulk'
version '0.1.0-SNAPSHOT'
+
+task yarnInstall(type:Exec) {
+ workingDir "src/main/resources/META-INF/resources"
+ commandLine "yarn", "install"
+}
+
+task snowpack(type:Exec) {
+ dependsOn yarnInstall
+
+ workingDir "src/main/resources/META-INF/resources"
+ commandLine "yarn", "run", "snowpack"
+}
+
+task compileWeb {
+ dependsOn snowpack
+
+ doLast {}
+}
+
+build.dependsOn compileWeb