diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..3b80fc5 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,20 @@ +module.exports = function (grunt) { + grunt.initConfig({ + bump: { + options: { + files: ['bower.json', 'src/juicy-color-picker.html'], + commit: true, + commitMessage: '%VERSION%', + commitFiles: ['bower.json', 'src/juicy-color-picker.html'], + createTag: true, + tagName: '%VERSION%', + tagMessage: 'Version %VERSION%', + push: false, + globalReplace: false, + prereleaseName: false, + regExp: false + } + } + }); + grunt.loadNpmTasks('grunt-bump'); +}; diff --git a/package.json b/package.json index d479142..1ebaf50 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "src/juicy-color-picker.html", "directories": {}, "dependencies": {}, - "devDependencies": {}, + "devDependencies": { + "grunt-bump": "^0.5.0" + }, "repository": { "type": "git", "url": "https://github.com/Juicy/juicy-color-picker"