Skip to content

Commit 402f113

Browse files
committed
Improve release scripts
1 parent 866bdfe commit 402f113

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@
3636
},
3737
"preferGlobal": true,
3838
"scripts": {
39-
"test": "jscs src/*.js && istanbul cover _mocha -- -u exports -R spec ./test/**/*",
4039
"style": "jscs src/*.js",
41-
"codacy": "istanbul cover _mocha -- -u exports -R spec ./test/**/* && cat ./coverage/lcov.info | codacy-coverage"
40+
"coverage": "istanbul cover _mocha -- -u exports -R spec ./test/**/*",
41+
"test": "npm run style && npm run coverage",
42+
"codacy": "npm run coverage && cat ./coverage/lcov.info | codacy-coverage",
43+
"preversion": "npm test",
44+
"postversion": "git push && git push --tags"
4245
},
4346
"bin": {
4447
"diff2html": "./bin/diff2html"

0 commit comments

Comments
 (0)