Skip to content

Instantly share code, notes, and snippets.

@gambtho
Created September 22, 2016 23:40
Show Gist options
  • Save gambtho/5da5d31d8e86946d5c63fb85d988be37 to your computer and use it in GitHub Desktop.
Save gambtho/5da5d31d8e86946d5c63fb85d988be37 to your computer and use it in GitHub Desktop.
plugins {
id "com.moowork.node" version "0.13"
}
task jsBuild(type: NpmTask) {
dependsOn 'jsTest'
args = ['build']
}
task jsTest(type: NpmTask) {
dependsOn 'npmInstall'
args = ['test']
}
project.tasks.processResources.dependsOn('npmInstall')
project.tasks.processResources.dependsOn('jsBuild')
project.tasks.test.dependsOn('jsTest')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment