This repository was archived by the owner on Dec 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ end_of_line = lf
88charset = utf-8
99trim_trailing_whitespace = true
1010insert_final_newline = true
11-
12- [* ]
1311indent_style = space
14- indent_size = 4
12+ indent_size = 4
13+
14+ [package.json ]
15+ indent_size = 2
Original file line number Diff line number Diff line change @@ -2,25 +2,6 @@ module.exports = function( grunt ) {
22 "use strict" ;
33
44 grunt . initConfig ( {
5- bump : {
6- options : {
7- files : [ "package.json" ] ,
8-
9- // Commit
10- commit : true ,
11- commitMessage : "Release v%VERSION%" ,
12- commitFiles : [ "package.json" ] ,
13-
14- // Tag
15- createTag : true ,
16- tagName : "%VERSION%" ,
17- tagMessage : "Version %VERSION%" ,
18-
19- // Push
20- push : true ,
21- pushTo : "origin"
22- }
23- } ,
245 jshint : {
256 options : {
267 jshintrc : ".jshintrc"
Original file line number Diff line number Diff line change 1+ # Maintainer Guide
2+
3+ ## Publishing a new version
4+
5+ 1 . Determine which part of the version you are about to increase.
6+ We follow the [ Versioning & Semver] ( http://jscs.info/overview.html#versioning-semver ) section from the JSCS project.
7+ 2 . Run a bump script via npm. This will commit and tag the changed files:
8+ - ` npm run bump ` - will increase the patch version;
9+ - ` npm run bump-minor ` - will increase the minor version.
10+ 3 . Push changes and tags: ` git push --follow-tags `
11+ 4 . Wait until the Travis-CI build finishes. It will publish a new version into npm.
12+ __ DO NOT USE__ ` npm publish ` ! If something goes wrong, Travis will tell us.
13+ 5 . Done!
Original file line number Diff line number Diff line change 2222 "vow" : " ~0.4.1"
2323 },
2424 "devDependencies" : {
25- "grunt-bump" : " ~0.0.13" ,
2625 "grunt-cli" : " ~0.1.13" ,
2726 "grunt-contrib-jshint" : " ~0.10.0" ,
2827 "grunt-contrib-nodeunit" : " ~0.4.0" ,
4241 "node" : " >= 0.10.0"
4342 },
4443 "scripts" : {
45- "test" : " grunt test"
44+ "test" : " grunt test" ,
45+ "bump" : " npm version patch -m \" Release v%s\" " ,
46+ "bump-minor" : " npm version minor -m \" Release v%s\" "
4647 },
4748 "files" : [
4849 " tasks" ,
You can’t perform that action at this time.
0 commit comments