Skip to content

Commit b4b6571

Browse files
committed
add npm scripts
1 parent 2e38720 commit b4b6571

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
@@ -13,7 +13,9 @@
1313
"scripts": {
1414
"test": "npm run lint && npm run coverage",
1515
"lint": "jshint . && jscs -v .",
16-
"coverage": "istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha"
16+
"coverage": "istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha",
17+
"preversion": "npm test",
18+
"postversion": "git push && git push --tags && rm -rf coverage"
1719
},
1820
"repository": {
1921
"type": "git",

0 commit comments

Comments
 (0)