aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/build.gradle.kts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 17:58:36 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 17:58:36 +0200
commitd34b8e0f4db84f1571785592b523e675a1b2f960 (patch)
tree1e2e123ba2071a11070e8310b7e9e3033f8ffae1 /subprojects/frontend/build.gradle.kts
parentbuild: enable parallel Gradle build (diff)
downloadrefinery-d34b8e0f4db84f1571785592b523e675a1b2f960.tar.gz
refinery-d34b8e0f4db84f1571785592b523e675a1b2f960.tar.zst
refinery-d34b8e0f4db84f1571785592b523e675a1b2f960.zip
build: improve Xtext project isolation
* Avoid writing generated source files directly into sibling projects. * Full project isolation cannot be enabled yet, because the frontend plugin still requires cross-projects task dependencies for Node.js installation.
Diffstat (limited to 'subprojects/frontend/build.gradle.kts')
-rw-r--r--subprojects/frontend/build.gradle.kts8
1 files changed, 4 insertions, 4 deletions
diff --git a/subprojects/frontend/build.gradle.kts b/subprojects/frontend/build.gradle.kts
index 9fd99742..d0839371 100644
--- a/subprojects/frontend/build.gradle.kts
+++ b/subprojects/frontend/build.gradle.kts
@@ -29,9 +29,9 @@ val sourcesWithoutTypes = fileTree("src") {
29 exclude("**/*.typegen.ts") 29 exclude("**/*.typegen.ts")
30} 30}
31 31
32val sourcesWithTypes = fileTree("src") + fileTree("types") 32val sourcesWithTypes: FileCollection = fileTree("src") + fileTree("types")
33 33
34val buildScripts = fileTree("config") + files( 34val buildScripts: FileCollection = fileTree("config") + files(
35 ".eslintrc.cjs", 35 ".eslintrc.cjs",
36 "prettier.config.cjs", 36 "prettier.config.cjs",
37 "vite.config.ts", 37 "vite.config.ts",
@@ -43,7 +43,7 @@ val installationState = files(
43 "package.json", 43 "package.json",
44) 44)
45 45
46val sharedConfigFiles = installationState + files( 46val sharedConfigFiles: FileCollection = installationState + files(
47 "tsconfig.json", 47 "tsconfig.json",
48 "tsconfig.base.json", 48 "tsconfig.base.json",
49 "tsconfig.node.json", 49 "tsconfig.node.json",
@@ -58,7 +58,7 @@ val assembleSources = sourcesWithTypes + fileTree("public") + file("index.html")
58 58
59val assembleFiles = assembleSources + assembleConfigFiles 59val assembleFiles = assembleSources + assembleConfigFiles
60 60
61val lintingFiles = sourcesWithTypes + buildScripts + sharedConfigFiles 61val lintingFiles: FileCollection = sourcesWithTypes + buildScripts + sharedConfigFiles
62 62
63tasks { 63tasks {
64 val generateXStateTypes by registering(RunYarn::class) { 64 val generateXStateTypes by registering(RunYarn::class) {