Skip to content

Commit 6bd2f14

Browse files
committed
Add release scripts to package.json
1 parent 0825873 commit 6bd2f14

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
"jquery": ">1.9.0"
1313
},
1414
"scripts": {
15-
"test": "grunt test --stack"
15+
"preversion": "npm test && npm run build",
16+
"version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/",
17+
"postversion": "git push --tags && git checkout master && git branch -D release && git push",
18+
"release:patch": "npm version patch && npm publish",
19+
"release:minor": "npm version minor && npm publish",
20+
"release:major": "npm version major && npm publish",
21+
"test": "grunt test --stack",
22+
"build": "grunt build"
1623
},
1724
"devDependencies": {
1825
"grunt": "^0.4.5",

0 commit comments

Comments
 (0)