Skip to content

Commit

Permalink
Add release scripts to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ccummings committed Apr 6, 2016
1 parent 0825873 commit 6bd2f14
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,14 @@
"jquery": ">1.9.0"
},
"scripts": {
"test": "grunt test --stack"
"preversion": "npm test && npm run build",
"version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/",
"postversion": "git push --tags && git checkout master && git branch -D release && git push",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"test": "grunt test --stack",
"build": "grunt build"
},
"devDependencies": {
"grunt": "^0.4.5",
Expand Down

0 comments on commit 6bd2f14

Please sign in to comment.