tcg-js/build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:1.+'
}
}
apply plugin: 'com.moowork.node'
node {
// Version of node to use.
version = '10.15.3'
// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'http://nodejs.org/dist'
// If true, it will download node using above parameters.
// If false, it will try to use globally installed node.
download = true
// Set the work directory for unpacking node
workDir = file("${project.buildDir}/nodejs")
}
task check << {
}
check.dependsOn npm_test
npm_test.dependsOn npm_install