add coveralls script

This commit is contained in:
Matias Alejo Garcia 2015-02-20 16:59:19 -03:00
parent 612123b3e8
commit 8bd09444e3
1 changed files with 53 additions and 50 deletions

View File

@ -22,11 +22,13 @@
"bitcore-explorers": "^0.9.1", "bitcore-explorers": "^0.9.1",
"body-parser": "^1.11.0", "body-parser": "^1.11.0",
"commander": "^2.6.0", "commander": "^2.6.0",
"coveralls": "^2.11.2",
"express": "^4.10.0", "express": "^4.10.0",
"inherits": "^2.0.1", "inherits": "^2.0.1",
"leveldown": "^0.10.0", "leveldown": "^0.10.0",
"levelup": "^0.19.0", "levelup": "^0.19.0",
"lodash": "^3.2.0", "lodash": "*",
"mocha-lcov-reporter": "0.0.1",
"morgan": "*", "morgan": "*",
"npmlog": "^0.1.1", "npmlog": "^0.1.1",
"preconditions": "^1.0.7", "preconditions": "^1.0.7",
@ -47,6 +49,7 @@
"scripts": { "scripts": {
"start": "node server.js", "start": "node server.js",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test",
"test": "./node_modules/.bin/mocha" "test": "./node_modules/.bin/mocha",
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
} }
} }