Skip to content

Commit

Permalink
Update build tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Aug 7, 2024
1 parent a6d618e commit 0004ebd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ node {
nodeProjectDir = file("${project.projectDir}")
}

tasks.register('installDepsForUI', PnpmTask) {
args = ['install']
}

tasks.register('buildFrontend', PnpmTask) {
args = ['build:packages']
dependsOn('installDepsForUI')
}

tasks.named('build').configure {
dependsOn('buildFrontend')
tasks.register('installDepsForUI', PnpmTask) {
args = ['install']
}

build {
// build frontend before build
tasks.named('compileJava').configure {
dependsOn('buildFrontend')
}
}

halo {
Expand Down

0 comments on commit 0004ebd

Please sign in to comment.