summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-15 21:33:55 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-15 21:33:55 +0100
commite5f071f19a0175d72837cce72acc9cb8fe398db9 (patch)
treed23d93e73456e13aea30c58e0c6a5645bc3cc72f /build.gradle
parentfc8caa58badd9a6b50019574c129303d1c87718e (diff)
Web: Add ESLint.
Change-Id: I3c7fb3cb2b11de29dab0f3be0d1587ee3d41e72f
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 773eb8e..7e7483a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -140,9 +140,21 @@ task flow(type:Exec) {
commandLine "yarn", "run", "flow", "--color=always"
}
+task eslint(type:Exec) {
+ def resourceDir = "src/main/resources/META-INF/resources"
+
+ onlyIf { !project.hasProperty('skipWeb') }
+
+ dependsOn snowpack
+
+ workingDir resourceDir
+ commandLine "yarn", "run", "eslint", "cms2", "bookmarks", "--color"
+}
+
task compileWeb {
dependsOn snowpack
dependsOn flow
+ dependsOn eslint
doLast {}
}