use com.github.node-gradle.node instead of com.moowork.node
moowork is no longer maintained and does not work with gradle 6
This commit is contained in:
1
pdb-js/.gitignore
vendored
1
pdb-js/.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
/build
|
/build
|
||||||
/bin
|
/bin
|
||||||
/tmp
|
/tmp
|
||||||
|
/.gradle/
|
||||||
/out-tsc
|
/out-tsc
|
||||||
# Only exists if Bazel was run
|
# Only exists if Bazel was run
|
||||||
/bazel-out
|
/bazel-out
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id "com.moowork.node" version "1.3.1"
|
id("com.github.node-gradle.node") version "2.2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.moowork.node'
|
|
||||||
|
|
||||||
|
|
||||||
node {
|
node {
|
||||||
// Version of node to use.
|
// Version of node to use.
|
||||||
//version = '0.11.10'
|
//version = '0.11.10'
|
||||||
version = '12.15.0'
|
version = '13.10.1'
|
||||||
|
|
||||||
// Version of npm to use.
|
// Version of npm to use.
|
||||||
//npmVersion = '7.1.0'
|
//npmVersion = '7.1.0'
|
||||||
@@ -35,6 +34,8 @@ node {
|
|||||||
|
|
||||||
// Set the work directory where node_modules should be located
|
// Set the work directory where node_modules should be located
|
||||||
//nodeModulesDir = file("${project.projectDir}")
|
//nodeModulesDir = file("${project.projectDir}")
|
||||||
|
|
||||||
|
download=true
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -64,3 +65,8 @@ jar {
|
|||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task myScript(type: NodeTask) {
|
||||||
|
script = file('src/scripts/my.js')
|
||||||
|
args = ['arg1', 'arg2']
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user