Files
Mats Paul Tončik 93ffe5c10b
aiis/pipeline/head This commit looks good
Initial person page structure
2026-05-26 12:27:37 +02:00

37 lines
789 B
Groovy

plugins {
id "base"
id "com.github.node-gradle.node" version "7.0.2"
}
node {
download = true
version = "26.2.0"
npmVersion = "10.7.0"
}
task cleanNgBuild(type: Delete) {
delete files("${projectDir}/dist/inse")
}
task ngBuild(type: NodeTask) {
dependsOn 'npmInstall', cleanNgBuild
script = file('node_modules/@angular/cli/bin/ng.js')
args = ['build', '--configuration', 'production', '--source-map=false', '--base-href', '/inse-webapp/']
}
task serve(type: NodeTask) {
dependsOn 'npmInstall'
script = file('node_modules/@angular/cli/bin/ng.js')
args = ['serve', '--configuration', 'development', '--proxy-config', 'src/proxy.conf.json', '--open']
workingDir = projectDir
}
build {
dependsOn ngBuild
}
clean {
dependsOn cleanNgBuild
}