Skip to content

Commit a0a1dd6

Browse files
committed
initial version of the mineflayer based npm test
1 parent 78735d2 commit a0a1dd6

File tree

5 files changed

+8475
-0
lines changed

5 files changed

+8475
-0
lines changed

test-utils/mineflayer/build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
plugins {
2+
id "com.github.node-gradle.node" version "3.2.1"
3+
}
4+
5+
node {
6+
// https://github.com/srs/gradle-node-plugin/blob/master/docs/node.md#configuring-the-plugin
7+
version = '16.0.0'
8+
npmVersion = '7.24.0'
9+
download = true
10+
}
11+
12+
task npmInstallDep(type: NpmTask, dependsOn: 'npmSetup') {
13+
inputs.file('package.json')
14+
outputs.upToDateWhen { file('node_modules').exists() }
15+
16+
npmCommand = ['install']
17+
}
18+
19+
task test(type: NpmTask, dependsOn: 'npmInstallDep') {
20+
args = ['test']
21+
}

0 commit comments

Comments
 (0)