From 6fbebb057962edc8daf421c858f82f33abe66125 Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Fri, 7 Mar 2014 13:45:41 -0800 Subject: [PATCH] feat(build): use bowerInstall on `watch` task When the bower.json file changes, run `grunt bower-install` to update the HTML files with references --- templates/common/Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index bcb121440..48d190027 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -26,7 +26,11 @@ module.exports = function (grunt) { }, // Watches files for changes and runs tasks based on the changed files - watch: {<% if (coffee) { %> + watch: { + bower: { + files: ['bower.json'], + tasks: ['bowerInstall'] + },<% if (coffee) { %> coffee: { files: ['<%%= yeoman.app %>/scripts/{,*/}*.{coffee,litcoffee,coffee.md}'], tasks: ['newer:coffee:dist']