Skip to content

Commit 74c4c92

Browse files
committed
Simplify coveralls script
Removes `npm run cover` in favor of the one `npm run coveralls` integration. Also simplifies that script, removing the need for babel-node. Finally, ensures the root is at "src" which removes the transient error parsing _mocha, speeds up the script, and does not count "scripts" as part of coverage score.
1 parent a0976e8 commit 74c4c92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@
3838
"testonly": "mocha $npm_package_options_mocha",
3939
"lint": "eslint src",
4040
"check": "flow check",
41-
"cover": "babel-node node_modules/.bin/isparta cover --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
4241
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib",
4342
"watch": "babel scripts/watch.js | node",
44-
"coveralls": "babel-node node_modules/.bin/isparta cover --report html node_modules/.bin/_mocha --report lcovonly -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
43+
"coveralls": "isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
4544
},
4645
"dependencies": {
4746
"babel-runtime": "5.7.0"

0 commit comments

Comments
 (0)