Skip to content

Commit 1a705b5

Browse files
author
Zeno Rocha
committed
Add grunt-bump for releases
1 parent 39a4504 commit 1a705b5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Gruntfile.js

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
module.exports = function(grunt) {
22
grunt.initConfig({
3+
bump: {
4+
options: {
5+
files: ['package.json'],
6+
commit: true,
7+
commitMessage: 'Release v%VERSION%',
8+
commitFiles: ['package.json'],
9+
createTag: true,
10+
tagName: '%VERSION%',
11+
tagMessage: '',
12+
push: true,
13+
pushTo: 'origin'
14+
}
15+
},
16+
317
lintspaces: {
418
all: {
519
src: ['*'],
@@ -13,6 +27,7 @@ module.exports = function(grunt) {
1327
}
1428
});
1529

30+
grunt.loadNpmTasks('grunt-bump');
1631
grunt.loadNpmTasks('grunt-lintspaces');
1732

1833
grunt.registerTask('default', ['lintspaces']);

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "sublime-snippets-js",
3+
"version": "0.2.2",
34
"repository": {
45
"type": "git",
56
"url": "https://github.com/zenorocha/sublime-snippets-js.git"
67
},
78
"devDependencies": {
89
"grunt": "0.4.1",
10+
"grunt-bump": "0.0.11",
911
"grunt-cli": "0.1.10",
1012
"grunt-lintspaces": "0.2.203"
1113
},

0 commit comments

Comments
 (0)