From d20f5bd20ba95d47447f8acceee491a0a0ba9724 Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Fri, 6 Dec 2013 00:36:52 -0800 Subject: [PATCH] fix(app): reload JS files in watch Reload JS files when they or the CS files are changed --- templates/common/Gruntfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index 322bde50c..ad8cf72bc 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -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'], @@ -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}' ] }