Skip to content

Commit 361d108

Browse files
committed
Add preversion/version/postversion scripts
1 parent cafeb17 commit 361d108

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"build-example": "webpack",
1111
"dev": "echo 'Open http://localhost:4003/examples/1.html' && cross-env NODE_ENV=test webpack-dev-server --config webpack-dev-server.config.js --hot --progress --colors --port 4003 --content-base .",
1212
"prepublish": "npm run build",
13-
"validate": "npm ls"
13+
"validate": "npm ls",
14+
"preversion": "npm run lint",
15+
"version": "npm run build && git add CHANGELOG.md",
16+
"postversion": "git push && git push --tags"
1417
},
1518
"repository": {
1619
"type": "git",

0 commit comments

Comments
 (0)