Skip to content

Commit

Permalink
initial version of the mineflayer based npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit committed Apr 9, 2022
1 parent 78735d2 commit a0a1dd6
Show file tree
Hide file tree
Showing 5 changed files with 8,475 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test-utils/mineflayer/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins {
id "com.github.node-gradle.node" version "3.2.1"
}

node {
// https://github.com/srs/gradle-node-plugin/blob/master/docs/node.md#configuring-the-plugin
version = '16.0.0'
npmVersion = '7.24.0'
download = true
}

task npmInstallDep(type: NpmTask, dependsOn: 'npmSetup') {
inputs.file('package.json')
outputs.upToDateWhen { file('node_modules').exists() }

npmCommand = ['install']
}

task test(type: NpmTask, dependsOn: 'npmInstallDep') {
args = ['test']
}
Loading

0 comments on commit a0a1dd6

Please sign in to comment.