labswp_2019_sose_geocaching/labswp_2019_sose_geocaching_frontend/build.gradle
2019-05-27 13:01:10 +02:00

33 lines
643 B
Groovy

plugins {
id 'war'
id "com.moowork.node" version "1.3.1"
}
apply plugin: 'com.moowork.node'
group 'labswp_2019_sose_geocaching_frontend'
version '1.0-SNAPSHOT'
node {
version = '11.12.0'
npmVersion = '6.9.0'
download = true
}
war {
from 'web/' // adds a file-set to the root of the archive
webInf { from 'WEB-INF' } // adds a file-set to the WEB-INF dir.
webXml = file('WEB-INF/web.xml') // copies a file to WEB-INF/web.xml
}
buildDir '../build'
tasks.withType(NpmTask) {
execOverrides {
it.workingDir = 'frontend'
}
}
npm_run_build.dependsOn npm_install
assemble.dependsOn npm_run_build