Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
feat(build): use bowerInstall on watch task
Browse files Browse the repository at this point in the history
When the bower.json file changes, run `grunt bower-install` to update
the HTML files with references
  • Loading branch information
eddiemonge committed Mar 7, 2014
1 parent 66829f4 commit 6fbebb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 6fbebb0

Please sign in to comment.