Skip to content

Commit dd7d822

Browse files
author
Marco Rinck
committed
version management
1 parent b424726 commit dd7d822

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

gruntfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,24 @@ module.exports = function (grunt) {
114114
src: '<%= concat.core.dest %>',
115115
dest: '<%= concat.core.dest %>'
116116
}
117+
},
118+
push: {
119+
options: {
120+
files: ['package.json', 'bower.json'],
121+
add: true,
122+
addFiles: ['.'], // '.' for all files except ingored files in .gitignore
123+
commit: true,
124+
commitMessage: 'Release v%VERSION%',
125+
commitFiles: ['package.json', 'bower.json', 'build/angular-onbeforeunload.js'], // '-a' for all files
126+
createTag: true,
127+
tagName: 'v%VERSION%',
128+
tagMessage: 'Version %VERSION%',
129+
push: true,
130+
pushTo: 'origin',
131+
npm: true,
132+
npmTag: 'Release v%VERSION%',
133+
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe'
134+
}
117135
}
118136
});
119137

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"grunt-bump": "0.0.2",
2323
"grunt-karma": "~0.7.x",
2424
"grunt-ngmin": "0.0.2",
25+
"grunt-push-release": "0.1.x",
2526
"matchdep": "0.1.2"
2627
}
2728
}

0 commit comments

Comments
 (0)