Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 716 Bytes
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:+'
}
}
}
apply plugin: 'com.moowork.node'
node {
version = '6.3.1'
npmVersion = '4.0.1'
distBaseUrl = 'https://nodejs.org/dist'
download = true
workDir = file("${project.buildDir}/nodejs")
}
task frontendBuild(type: NpmTask) {
args = [ 'run', 'build' ]
}
frontendBuild.dependsOn('npmInstall')
task frontendJar(type: Jar) {
appendix = 'frontend'
into 'frontend'
from fileTree('./dist/')
destinationDir file(project.buildDir)
}
frontendJar.dependsOn('frontendBuild')
configurations { frontend }
artifacts { frontend frontendJar }