Skip to content

Commit 2a4001f

Browse files
committed
Merge pull request #1174 from kingcody/fix/babel-watch-app.js
fix(app): babel watches all client (non-spec) js for changes
2 parents ba157bb + 0017b6f commit 2a4001f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: app/templates/Gruntfile.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ module.exports = function (grunt) {
5454
url: 'http://localhost:<%%= express.options.port %>'
5555
}
5656
},
57-
watch: {
57+
watch: {<% if(filters.babel) { %>
58+
babel: {
59+
files: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js'],
60+
tasks: ['newer:babel:client']
61+
},<% } %>
5862
injectJS: {
5963
files: [
6064
'<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js',
6165
'!<%%= yeoman.client %>/app/app.js'
6266
],
63-
tasks: [<% if(filters.babel) { %>'newer:babel:client', <% } %>'injector:scripts']
67+
tasks: ['injector:scripts']
6468
},
6569
injectCss: {
6670
files: ['<%%= yeoman.client %>/{app,components}/**/*.css'],

0 commit comments

Comments
 (0)