Skip to content

Commit

Permalink
chore(ui): register build task into gradle assemble lifecycle (spring…
Browse files Browse the repository at this point in the history
…wolf#1061)

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 authored and ruskaof committed Nov 20, 2024
1 parent 1b3859b commit 8848010
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 8848010

Please sign in to comment.