diff options
| author | XhmikosR <[email protected]> | 2019-10-09 19:28:26 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-11-14 09:32:38 +0200 |
| commit | 6a10cbde9b94b329795c7a295fe0037545c8fe1f (patch) | |
| tree | 38e7cc6d5c02c8079b312f4658592159418d0ee5 /package.json | |
| parent | 2ed185ca3626591549ed33c2363a47b824a39d0f (diff) | |
| download | node-coveralls-6a10cbde9b94b329795c7a295fe0037545c8fe1f.tar.xz node-coveralls-6a10cbde9b94b329795c7a295fe0037545c8fe1f.zip | |
Switch to npm scripts.
This is cross-platform and doesn't require make installed.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package.json b/package.json index 3388b95..edf0ced 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,13 @@ "url": "https://github.com/nickmerwin/node-coveralls/issues" }, "scripts": { - "test": "snyk test && make test" + "lint": "jshint ./lib ./test ./index.js", + "mocha": "_mocha -b -R spec", + "test-cov": "istanbul cover npm run mocha", + "pretest-coveralls": "npm run pretest", + "test-coveralls": "istanbul cover npm run mocha -- --report lcovonly && shx cat ./coverage/lcov.info | node ./bin/coveralls.js --verbose", + "pretest": "cross-env-shell \"echo TRAVIS_JOB_ID $TRAVIS_JOB_ID\"", + "test": "snyk test && npm run lint && npm run mocha" }, "bin": { "coveralls": "./bin/coveralls.js" @@ -38,11 +44,13 @@ "request": "^2.86.0" }, "devDependencies": { + "cross-env": "^5.2.1", "istanbul": "^0.4.5", "jshint": "^2.10.1", "mocha": "^6.1.4", "mocha-lcov-reporter": "^1.2.0", "should": "^9.0.2", + "shx": "^0.3.2", "sinon-restore": "^1.0.1", "snyk": "^1.134.2" }, |
