Skip to content

Commit

Permalink
Added outputs for node_modules to yarn add task so it doesn't keep re…
Browse files Browse the repository at this point in the history
…compiling.
  • Loading branch information
lagergren committed Dec 20, 2023
1 parent fd75748 commit 93fadf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformUI/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ val yarnSetup by tasks.existing
val yarnAddQuasar by tasks.registering(YarnTask::class) {
dependsOn(yarnSetup)
workingDir = gui
outputs.file("node_modules")
args = buildList {
val isQuasarGlobal = findProperty("org.xtclang.platform.quasarGlobal")?.toString() ?: "false"
add("add")
Expand All @@ -64,6 +65,7 @@ val yarnAddQuasar by tasks.registering(YarnTask::class) {
val yarnQuasarBuild by tasks.registering(YarnTask::class) {
dependsOn(yarnAddQuasar)
workingDir = gui
outputs.files()
args = listOf("--ignore-engines", "quasar", "build")
doLast {
printTaskOutputs()
Expand Down

0 comments on commit 93fadf3

Please sign in to comment.