Skip to content

Commit

Permalink
Resolves #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Waxolunist committed Jun 20, 2014
1 parent 1e4e57f commit 64fd037
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
module.exports = function(grunt) {

grunt.registerTask('bowerupdate', 'update the frontend dependencies', function() {
var exec = require('child_process').exec;
var cb = this.async();
exec('bower update', {cwd: '.'}, function(err, stdout, stderr) {
console.log(stdout);
cb();
});
});

grunt.registerTask('npmupdate', 'update the development dependencies', function() {
var exec = require('child_process').exec;
var cb = this.async();
exec('npm update', {cwd: '.'}, function(err, stdout, stderr) {
console.log(stdout);
cb();
});
});

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -143,6 +161,8 @@ module.exports = function(grunt) {
// Default task(s).
grunt.registerTask('dev', ['handlebars', 'concat:commands']);
grunt.registerTask('amd', ['concat:all', 'wrap:wysihtml5', 'wrap:templates', 'wrap:commands', 'copy:amd', 'concat:amd']);
grunt.registerTask('default', ['clean:build', 'handlebars:compile', 'concat:commands', 'amd', 'uglify', 'cssmin', 'copy:main']);
grunt.registerTask('build', ['clean:build', 'handlebars:compile', 'concat:commands', 'amd', 'uglify', 'cssmin', 'copy:main']);
grunt.registerTask('with-update', ['bowerupdate', 'npmupdate', 'build']);
grunt.registerTask('default', ['build']);

};

0 comments on commit 64fd037

Please sign in to comment.