diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-15 20:40:30 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-15 20:40:30 +0100 |
commit | b3a2c48f559d80c6ff3fd676a3a0a28f75645b57 (patch) | |
tree | f75f0d7edf4195d3fb773338aec52a861f42ddf6 /build.gradle | |
parent | f550d24f4badd85f29d7741d3ab8efe2b81c05ee (diff) |
Use Flow to typecheck JavaScript code.
Change-Id: I9c0c9b5aa74d592a04eb6533e64669f1896fb7cd
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 6274531..773eb8e 100644 --- a/build.gradle +++ b/build.gradle @@ -129,8 +129,20 @@ task snowpack(type:Exec) { commandLine "yarn", "run", "snowpack", "--optimize" } +task flow(type:Exec) { + def resourceDir = "src/main/resources/META-INF/resources" + + onlyIf { !project.hasProperty('skipWeb') } + + dependsOn snowpack + + workingDir resourceDir + commandLine "yarn", "run", "flow", "--color=always" +} + task compileWeb { dependsOn snowpack + dependsOn flow doLast {} } |