Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Commit 330f2bc

Browse files
author
Gustavo Henke
committed
Merge branch 'remove-grunt-bump'
2 parents 37a7757 + 34dba9c commit 330f2bc

4 files changed

Lines changed: 20 additions & 24 deletions

File tree

.editorconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
11-
12-
[*]
1311
indent_style = space
14-
indent_size = 4
12+
indent_size = 4
13+
14+
[package.json]
15+
indent_size = 2

Gruntfile.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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"

MAINTAN.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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!

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
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",
@@ -42,7 +41,9 @@
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",

0 commit comments

Comments
 (0)