Skip to content

Commit

Permalink
chore(ui): register build task into gradle assemble lifecycle
Browse files Browse the repository at this point in the history
Now, Intellij will include the ui when the application is started via the Application class (as alternative to gradle bootRun task)
  • Loading branch information
timonback committed Nov 3, 2024
1 parent 4903c59 commit 83c295b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions springwolf-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ node {
download = true
}

npm_run_build {
dependsOn spotlessCheck
tasks.register('npm_run_build', NpmTask) {
dependsOn npmInstall, spotlessCheck

args = ['run', 'build']

inputs.files fileTree("src")
inputs.file 'angular.json'
Expand All @@ -19,13 +21,20 @@ npm_run_build {

outputs.dir 'build'
}
assemble.dependsOn('npm_run_build')

tasks.register('npm_run_test', NpmTask) {
dependsOn npmInstall

args = ['run', 'test']

npm_run_test {
inputs.files fileTree("src")
inputs.file 'angular.json'
inputs.file 'package.json'
inputs.file 'package-lock.json'
outputs.upToDateWhen { true }
}
test.dependsOn('npm_run_test')

tasks.register('buildPages', NpmTask) {
args = ['run', 'build_pages']
Expand Down

0 comments on commit 83c295b

Please sign in to comment.