Skip to content

Commit ec86030

Browse files
committed
config: modify coverage scripts
1 parent bee378f commit ec86030

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ node_js:
88
- "4"
99
- "0.12"
1010
after_success:
11-
- cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
11+
- npm run coverall

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "webpack --config webpack.build.config.js",
1010
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
1111
"lint": "eslint --ext=.js,.vue src",
12-
"coverall": "npm run test && cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
12+
"coverall": "cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
13+
"coverage": "npm run test && npm run coverall",
1314
"changelog": "conventional-changelog -i CHANGELOG.md -s",
1415
"docs": "cd docs && gitbook serve",
1516
"unit": "karma start test/unit/karma.conf.js",

0 commit comments

Comments
 (0)