Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
added grunt-bump to manage release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Sep 23, 2015
1 parent b3ffc5c commit 950a121
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,32 @@ module.exports = function(grunt) {
dest: 'build/manifest.appcache'
}
},

bump: {
options: {
files: ['package.json', 'bower.json', 'app/app.js'],
updateConfigs: [],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['package.json'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: true,
pushTo: 'origin',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: false,
prereleaseName: false,
regExp: new RegExp('([\'|\"]?version[\'|\"]?[ ]*[:|,][ ]*[\'|\"]?)(\\d+\\.\\d+\\.\\d+(-<%= bump.options.prereleaseName %>\\.\\d+)?(-\\d+)?)[\\d||A-a|.|-]*([\'|\"]?)', 'i'),
}
},
});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-manifest');
grunt.loadNpmTasks('grunt-bump');

// Default task(s).
grunt.registerTask('default', ['concat', 'uglify', 'copy', 'manifest']);
Expand Down
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ angular.module('myApp.version', [
'myApp.version.version-directive',
])

.value('version', '0.1');
.value('version', '0.2.0');
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hdb",
"description": "HELGO DB: A simple database system for a NGO",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "https://github.com/sebastian-leidig/helgo_db",
"private": true,
"dependencies": {
Expand Down

0 comments on commit 950a121

Please sign in to comment.