Skip to content

Commit

Permalink
chore: add release tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 1, 2013
1 parent 9188593 commit 1560dc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ module.exports = function(grunt) {
// Load local tasks.
grunt.loadTasks('tasks');

grunt.loadNpmTasks('grunt-npm');
grunt.loadNpmTasks('grunt-bump');

// Default task.
grunt.registerTask('default', 'coffeelint');

grunt.registerTask('release', 'Bump version, push to NPM.', function(type) {
grunt.task.run([
'bump:' + (type || 'patch'),
'npm-publish'
]);
});
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"coffeelint": "~0.5"
},
"devDependencies": {
"grunt": "~0.4"
"grunt": "~0.4",
"grunt-bump": "~0.0.7",
"grunt-npm": "~0.0.2"
},
"keywords": [
"gruntplugin"
Expand Down

0 comments on commit 1560dc7

Please sign in to comment.