Skip to content

Commit d20f5bd

Browse files
committed
fix(app): reload JS files in watch
Reload JS files when they or the CS files are changed
1 parent 92a531e commit d20f5bd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: templates/common/Gruntfile.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ module.exports = function (grunt) {
3636
tasks: ['newer:coffee:test', 'karma']
3737
},<% } else { %>
3838
js: {
39-
files: ['{.tmp,<%%= yeoman.app %>}/scripts/{,*/}*.js'],
40-
tasks: ['newer:jshint:all']
39+
files: ['<%%= yeoman.app %>/scripts/{,*/}*.js'],
40+
tasks: ['newer:jshint:all'],
41+
options: {
42+
livereload: true
43+
}
4144
},
4245
jsTest: {
4346
files: ['test/spec/{,*/}*.js'],
@@ -60,7 +63,8 @@ module.exports = function (grunt) {
6063
},
6164
files: [
6265
'<%%= yeoman.app %>/{,*/}*.html',
63-
'.tmp/styles/{,*/}*.css',
66+
'.tmp/styles/{,*/}*.css',<% if (coffee) { %>
67+
'.tmp/scripts/{,*/}*.js',<% } %>
6468
'<%%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
6569
]
6670
}

0 commit comments

Comments
 (0)