Skip to content

Commit 1ff7556

Browse files
committed
Add a release script to the package.json
1 parent fb10c9f commit 1ff7556

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
coverage/
33
test/fixtures/**/dir
44
.nyc_output/
5-
.coveralls.yml
5+
.coveralls.yml
6+
*.log

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"scripts": {
1010
"test": "mocha --timeout 10000 test/*.test.js",
1111
"watch:test": "mocha --timeout 10000 --watch test/*.test.js",
12-
"test:cover": "nyc npm run test",
12+
"test:cover": "nyc npm test",
1313
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
14-
"precommit": "npm run test:cover"
14+
"prepush": "npm run test:cover",
15+
"release" : "npm run test:cover && git tag $npm_package_version && git commit -am $npm_package_version && git push && git push --tags && npm publish"
1516
},
1617
"keywords": [
1718
"webpack",

0 commit comments

Comments
 (0)