Skip to content

Commit

Permalink
adds grunt release
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Copeland committed Mar 2, 2015
1 parent d6c84eb commit ace82e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ module.exports = function (grunt) {
dest: 'dist/images/'
}]
}
},
release: {
options: {
npm: true,
tagName: '<%= version %>',
commitMessage: 'release <%= version %>',
tagMessage: 'tag <%= version %>' //default: 'Version <%= version %>'
}
}
});

Expand All @@ -92,6 +100,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-release');

grunt.registerMultiTask('svg2png', 'Create PNG images from SVG', function () {
this.files.forEach(function (file) {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-uglify": "^0.7.0",
"grunt-jscs": "^1.2.0",
"grunt-release": "^0.11.0",
"svg2png": "^1.1.0"
},
"browserify": {
"transform": [ "browserify-shim" ]
"transform": [
"browserify-shim"
]
},
"browserify-shim": {
"leaflet": "global:L"
Expand Down

0 comments on commit ace82e9

Please sign in to comment.