allow deploypr:prototypes comment to spin up the prototypes build (#6144)

Co-authored-by: James Brunton <[email protected]>
This commit is contained in:
EthanHealy01
2026-04-20 18:58:33 +01:00
committed by GitHub
co-authored by James Brunton
parent e5767ed58b
commit 089e448cf4
5 changed files with 162 additions and 46 deletions
+2 -1
View File
@@ -178,6 +178,7 @@ springBoot {
// Frontend build tasks - only enabled with -PbuildWithFrontend=true
def buildWithFrontend = project.hasProperty('buildWithFrontend') && project.property('buildWithFrontend') == 'true'
def buildPrototypes = project.hasProperty('prototypesMode') && project.property('prototypesMode') == 'true'
def frontendDir = file('../../frontend')
def frontendDistDir = file('../../frontend/dist')
def resourcesStaticDir = file('src/main/resources/static')
@@ -246,7 +247,7 @@ tasks.register('npmBuild', Exec) {
group = 'frontend'
description = 'Build frontend application'
workingDir file('../..')
commandLine = ['task', 'frontend:build']
commandLine = buildPrototypes ? ['task', 'frontend:build:prototypes'] : ['task', 'frontend:build']
inputs.dir(new File(frontendDir, 'src'))
inputs.dir(new File(frontendDir, 'public'))
inputs.file(new File(frontendDir, 'package.json'))