From 0017b6fee26d21d29fd5f082bea8418f336a5643 Mon Sep 17 00:00:00 2001 From: kingcody Date: Fri, 14 Aug 2015 21:49:09 -0400 Subject: [PATCH] fix(app): babel watches all client (non-spec) js for changes --- app/templates/Gruntfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index 070aff36d..b67e1825a 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -54,13 +54,17 @@ module.exports = function (grunt) { url: 'http://localhost:<%%= express.options.port %>' } }, - watch: { + watch: {<% if(filters.babel) { %> + babel: { + files: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js'], + tasks: ['newer:babel:client'] + },<% } %> injectJS: { files: [ '<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js', '!<%%= yeoman.client %>/app/app.js' ], - tasks: [<% if(filters.babel) { %>'newer:babel:client', <% } %>'injector:scripts'] + tasks: ['injector:scripts'] }, injectCss: { files: ['<%%= yeoman.client %>/{app,components}/**/*.css'],