Skip to content

Commit

Permalink
fix(app): reload JS files in watch
Browse files Browse the repository at this point in the history
Reload JS files when they or the CS files are changed
  • Loading branch information
eddiemonge committed Dec 6, 2013
1 parent 92a531e commit d20f5bd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ module.exports = function (grunt) {
tasks: ['newer:coffee:test', 'karma']
},<% } else { %>
js: {
files: ['{.tmp,<%%= yeoman.app %>}/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all']
files: ['<%%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all'],
options: {
livereload: true
}
},
jsTest: {
files: ['test/spec/{,*/}*.js'],
Expand All @@ -60,7 +63,8 @@ module.exports = function (grunt) {
},
files: [
'<%%= yeoman.app %>/{,*/}*.html',
'.tmp/styles/{,*/}*.css',
'.tmp/styles/{,*/}*.css',<% if (coffee) { %>
'.tmp/scripts/{,*/}*.js',<% } %>
'<%%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
Expand Down

0 comments on commit d20f5bd

Please sign in to comment.