summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-23 10:47:52 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-23 10:47:52 +0100
commit2a1075511bfc72d0b254d20e18d11efe6c9e5e74 (patch)
tree023b4179e8f09e4b985bc2c8908178218928636a /build.gradle
parent282c84aac7284ed8d0ee264936b3587373a80177 (diff)
Use Snowpack for web module management.
Change-Id: Id4ed0471166cfe82caeca7b5e8b53c9ef1765d66
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