Skip to content

Commit

Permalink
chore(gruntFile): fix watch task
Browse files Browse the repository at this point in the history
The watch task was breaking because it was watching the "compiled (js)"
template files, which we being deleted and updated as part of the build.
This change removes these js files from the list of watched files.

Closes angular-app#197
  • Loading branch information
buberdds authored and petebacondarwin committed Oct 27, 2013
1 parent bce20b1 commit 88bb5c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/gruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module.exports = function (grunt) {
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;\n' +
' * Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>\n */\n',
src: {
js: ['src/**/*.js', '<%= distdir %>/templates/**/*.js'],
js: ['src/**/*.js'],
jsTpl: ['<%= distdir %>/templates/**/*.js'],
specs: ['test/**/*.spec.js'],
scenarios: ['test/**/*.scenario.js'],
html: ['src/index.html'],
Expand Down Expand Up @@ -81,7 +82,7 @@ module.exports = function (grunt) {
options: {
banner: "<%= banner %>"
},
src:['<%= src.js %>'],
src:['<%= src.js %>', '<%= src.jsTpl %>'],
dest:'<%= distdir %>/<%= pkg.name %>.js'
},
index: {
Expand Down Expand Up @@ -113,7 +114,7 @@ module.exports = function (grunt) {
options: {
banner: "<%= banner %>"
},
src:['<%= src.js %>'],
src:['<%= src.js %>' ,'<%= src.jsTpl %>'],
dest:'<%= distdir %>/<%= pkg.name %>.js'
},
angular: {
Expand Down Expand Up @@ -162,7 +163,7 @@ module.exports = function (grunt) {
}
},
jshint:{
files:['gruntFile.js', '<%= src.js %>', '<%= src.specs %>', '<%= src.scenarios %>'],
files:['gruntFile.js', '<%= src.js %>', '<%= src.jsTpl %>', '<%= src.specs %>', '<%= src.scenarios %>'],
options:{
curly:true,
eqeqeq:true,
Expand Down

0 comments on commit 88bb5c3

Please sign in to comment.