Skip to content

Commit 6fbebb0

Browse files
committed
feat(build): use bowerInstall on watch task
When the bower.json file changes, run `grunt bower-install` to update the HTML files with references
1 parent 66829f4 commit 6fbebb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/common/Gruntfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ module.exports = function (grunt) {
2626
},
2727

2828
// Watches files for changes and runs tasks based on the changed files
29-
watch: {<% if (coffee) { %>
29+
watch: {
30+
bower: {
31+
files: ['bower.json'],
32+
tasks: ['bowerInstall']
33+
},<% if (coffee) { %>
3034
coffee: {
3135
files: ['<%%= yeoman.app %>/scripts/{,*/}*.{coffee,litcoffee,coffee.md}'],
3236
tasks: ['newer:coffee:dist']

0 commit comments

Comments
 (0)