Use Snowpack for web module management.
Change-Id: Id4ed0471166cfe82caeca7b5e8b53c9ef1765d66
diff --git a/build.gradle b/build.gradle
index 60c2925..d505ac1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -87,3 +87,23 @@
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