Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
creighton committed Dec 9, 2014
1 parent 6d55853 commit e256420
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bump: {
options: {
updateConfigs: ['pkg'],
commitFiles: ['-a']
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> | Built on <%= grunt.template.today("yyyy-mm-dd HH:MM:sso") %> */\n'
banner: '/*! <%= pkg.name %> v <%= pkg.version %> | Built on <%= grunt.template.today("yyyy-mm-dd HH:MM:sso") %> */\n'
},
build: {
files: {
Expand All @@ -20,10 +26,16 @@ module.exports = function(grunt) {
}
});

// Load the plugin that provides the "uglify" task.
// Load the plugins.
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task(s).
grunt.registerTask('default', ['uglify']);
grunt.registerTask('release', 'Build the release of xapiwrapper', function(n) {
var vertype = n;
if (vertype == null) vertype = 'minor';
grunt.task.run('bump-only:' + vertype, 'default', 'bump-commit');
});

};
Loading

0 comments on commit e256420

Please sign in to comment.