Skip to content

Commit bee378f

Browse files
committed
config: add coverall script to npm
1 parent 77b92b6 commit bee378f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"homepage": "https://github.com/icebob/vue-form-generator",
66
"main": "dist/vue-form-generator.js",
77
"scripts": {
8+
"prebuild": "npm run test",
89
"build": "webpack --config webpack.build.config.js",
910
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
1011
"lint": "eslint --ext=.js,.vue src",
11-
"coverall": "karma start test/unit/karma.conf.js --single-run --reporters coverage,coveralls",
12+
"coverall": "npm run test && cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1213
"changelog": "conventional-changelog -i CHANGELOG.md -s",
1314
"docs": "cd docs && gitbook serve",
1415
"unit": "karma start test/unit/karma.conf.js",
1516
"e2e": "node test/e2e/runner.js",
17+
"pretest": "npm run lint",
1618
"test": "npm run unit",
1719
"ci": "karma start test/unit/karma.conf.js --auto-watch --no-single-run --reporters=dots"
1820
},

0 commit comments

Comments
 (0)