diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
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 {} } |