Comparing version 0.2.3 to 0.2.4
/*jslint node: true */ | ||
"use strict"; | ||
const c8 = "npx c8 -x Gruntfile.js -x 'test/**'"; | ||
var remote_index = -1; | ||
@@ -19,3 +21,6 @@ for (var i = 0; i < process.argv.length; i += 1) | ||
jshint: { | ||
src: [ 'Gruntfile.js', 'index.js', 'test/**/*.js' ] | ||
src: [ 'Gruntfile.js', 'index.js', 'test/**/*.js' ], | ||
options: { | ||
esversion: 9 | ||
} | ||
}, | ||
@@ -34,21 +39,17 @@ | ||
shell: { | ||
exec: Object.fromEntries(Object.entries({ | ||
cover: { | ||
command: "./node_modules/.bin/nyc -x Gruntfile.js -x 'test/**' ./node_modules/.bin/grunt test " + (remote_index < 0 ? '' : process.argv.slice(remote_index).join(' ')) | ||
cmd: `${c8} npx grunt test ${remote_index < 0 ? '' : process.argv.slice(remote_index).join(' ')}` | ||
}, | ||
cover_report: { | ||
command: './node_modules/.bin/nyc report -r lcov' | ||
cmd: `${c8} report -r lcov` | ||
}, | ||
cover_check: { | ||
command: './node_modules/.bin/nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100' | ||
cmd: `${c8} check-coverage --statements 100 --branches 100 --functions 100 --lines 100` | ||
}, | ||
coveralls: { | ||
command: 'cat coverage/lcov.info | coveralls' | ||
}, | ||
diagrams: { | ||
command: 'dot diagrams/how_it_works.dot -Tsvg -odiagrams/how_it_works.svg' | ||
cmd: 'dot diagrams/how_it_works.dot -Tsvg -odiagrams/how_it_works.svg' | ||
}, | ||
@@ -59,3 +60,3 @@ | ||
} | ||
} | ||
}).map(([k, v]) => [k, { stdio: 'inherit', ...v }])) | ||
}); | ||
@@ -66,13 +67,12 @@ | ||
grunt.loadNpmTasks('grunt-apidox'); | ||
grunt.loadNpmTasks('grunt-shell'); | ||
grunt.loadNpmTasks('grunt-exec'); | ||
grunt.registerTask('lint', 'jshint'); | ||
grunt.registerTask('pack', 'exec:pack'); | ||
grunt.registerTask('test', 'mochaTest'); | ||
grunt.registerTask('docs', ['shell:diagrams', 'apidox']); | ||
grunt.registerTask('pack', 'shell:pack'); | ||
grunt.registerTask('coverage', ['shell:cover', | ||
'shell:cover_report', | ||
'shell:cover_check']); | ||
grunt.registerTask('coveralls', 'shell:coveralls'); | ||
grunt.registerTask('docs', ['exec:diagrams', 'apidox']); | ||
grunt.registerTask('coverage', ['exec:cover', | ||
'exec:cover_report', | ||
'exec:cover_check']); | ||
grunt.registerTask('default', ['lint', 'test']); | ||
}; |
{ | ||
"name": "cp-remote", | ||
"description": "Remote child_process runner with message support", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "https://github.com/davedoesdev/cp-remote", | ||
@@ -22,3 +22,3 @@ "author": { | ||
"test": "grunt lint test --remote=localhost", | ||
"travis-test": "grunt lint test coverage coveralls --remote=localhost" | ||
"coverage": "grunt coverage --remote=localhost" | ||
}, | ||
@@ -38,14 +38,13 @@ "directories": { | ||
"devDependencies": { | ||
"async": "^3.2.0", | ||
"grunt": "^1.2.1", | ||
"grunt-contrib-jshint": "^2.1.0", | ||
"async": "^3.2.2", | ||
"c8": "^7.10.0", | ||
"chai": "^4.3.4", | ||
"grunt": "^1.4.1", | ||
"grunt-apidox": "^2.0.14", | ||
"grunt-contrib-jshint": "^3.1.1", | ||
"grunt-exec": "^3.0.0", | ||
"grunt-mocha-test": "^0.13.3", | ||
"grunt-apidox": "^2.0.10", | ||
"grunt-shell": "^3.0.1", | ||
"mocha": "^8.1.1", | ||
"chai": "^4.2.0", | ||
"nyc": "^15.1.0", | ||
"coveralls": "^3.1.0", | ||
"yargs": "^15.4.1" | ||
"mocha": "^9.1.3", | ||
"yargs": "^17.2.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93847
10
27