diff options
Diffstat (limited to 'language-web/build.gradle')
-rw-r--r-- | language-web/build.gradle | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/language-web/build.gradle b/language-web/build.gradle index c467c019..1f1457d6 100644 --- a/language-web/build.gradle +++ b/language-web/build.gradle | |||
@@ -35,14 +35,24 @@ frontend { | |||
35 | yarnEnabled = true | 35 | yarnEnabled = true |
36 | yarnVersion = project.ext.yarnVersion | 36 | yarnVersion = project.ext.yarnVersion |
37 | yarnInstallDirectory = file("${rootDir}/.gradle/yarn") | 37 | yarnInstallDirectory = file("${rootDir}/.gradle/yarn") |
38 | assembleScript = 'run assemble' | 38 | assembleScript = 'run assemble:webpack' |
39 | } | 39 | } |
40 | 40 | ||
41 | def installFrontend = tasks.named('installFrontend') | 41 | def installFrontend = tasks.named('installFrontend') |
42 | 42 | ||
43 | def generateLezerGrammar = tasks.register('generateLezerGrammar', RunNpmYarn) { | ||
44 | dependsOn installFrontend | ||
45 | inputs.file('src/main/js/editor/problem.grammar') | ||
46 | inputs.files('package.json', 'yarn.lock') | ||
47 | outputs.file "${buildDir}/generated/sources/lezer/problem.ts" | ||
48 | outputs.file "${buildDir}/generated/sources/lezer/problem.terms.ts" | ||
49 | script = 'run assemble:lezer' | ||
50 | } | ||
51 | |||
43 | def assembleFrontend = tasks.named('assembleFrontend') | 52 | def assembleFrontend = tasks.named('assembleFrontend') |
44 | assembleFrontend.configure { | 53 | assembleFrontend.configure { |
45 | dependsOn generateXtextLanguage | 54 | dependsOn generateXtextLanguage |
55 | dependsOn generateLezerGrammar | ||
46 | inputs.dir 'src/main/css' | 56 | inputs.dir 'src/main/css' |
47 | inputs.dir 'src/main/html' | 57 | inputs.dir 'src/main/html' |
48 | inputs.dir 'src/main/js' | 58 | inputs.dir 'src/main/js' |