Skip to content

Instantly share code, notes, and snippets.

@fatuk
Created April 30, 2014 21:53
Show Gist options
  • Save fatuk/11439531 to your computer and use it in GitHub Desktop.
Save fatuk/11439531 to your computer and use it in GitHub Desktop.
run bower install
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: { // Task
bower_update: { // Target
options: { // Options
stderr: false
},
command: 'bower update'
}
},
watch: {
scripts: {
files: ['bower.json'],
tasks: ['shell:bower_update'],
options: {
spawn: false,
}
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment