@@ -39,13 +39,13 @@ module.exports = function (grunt) {
3939 } ,
4040 dev : {
4141 options : {
42- script : 'server/app.js ' ,
42+ script : 'server' ,
4343 debug : true
4444 }
4545 } ,
4646 prod : {
4747 options : {
48- script : 'dist/server/app.js '
48+ script : 'dist/server'
4949 }
5050 }
5151 } ,
@@ -61,7 +61,7 @@ module.exports = function (grunt) {
6161 '!<%%= yeoman.client %>/{app,components}/**/*.spec.js' ,
6262 '!<%%= yeoman.client %>/{app,components}/**/*.mock.js' ,
6363 '!<%%= yeoman.client %>/app/app.js' ] ,
64- tasks : [ 'injector:scripts' ]
64+ tasks : [ < % if ( filters . babel ) { % > 'newer:babel:client' , < % } % > 'injector:scripts']
6565 } ,
6666 injectCss : {
6767 files : [
@@ -128,13 +128,6 @@ module.exports = function (grunt) {
128128 '<%%= yeoman.client %>/{app,components}/**/*.spec.{coffee,litcoffee,coffee.md}'
129129 ] ,
130130 tasks : [ 'karma' ]
131- } , < % } % > < % if ( filters . babel ) { % >
132- babel : {
133- files : [
134- '<%%= yeoman.client %>/{app,components}/**/*.js' ,
135- '!<%%= yeoman.client %>/{app,components}/**/*.spec.js'
136- ] ,
137- tasks : [ 'babel' ]
138131 } ,< % } % >
139132 gruntfile: {
140133 files : [ 'Gruntfile.js' ]
@@ -143,11 +136,7 @@ module.exports = function (grunt) {
143136 files : [
144137 '{.tmp,<%%= yeoman.client %>}/{app,components}/**/*.css' ,
145138 '{.tmp,<%%= yeoman.client %>}/{app,components}/**/*.html' ,
146- < % if ( filters . babel ) { % >
147- '.tmp/{app,components}/**/*.js' ,
148- < % } else { % >
149139 '{.tmp,<%%= yeoman.client %>}/{app,components}/**/*.js' ,
150- < % } % >
151140 '!{.tmp,<%%= yeoman.client %>}{app,components}/**/*.spec.js' ,
152141 '!{.tmp,<%%= yeoman.client %>}/{app,components}/**/*.mock.js' ,
153142 '<%%= yeoman.client %>/assets/images/{,*//*}*.{png,jpg,jpeg,gif,webp,svg}'
@@ -261,7 +250,7 @@ module.exports = function (grunt) {
261250 // Use nodemon to run server in debug mode with an initial breakpoint
262251 nodemon: {
263252 debug : {
264- script : 'server/app.js ' ,
253+ script : 'server' ,
265254 options : {
266255 nodeArgs : [ '--debug-brk' ] ,
267256 env : {
@@ -470,15 +459,15 @@ module.exports = function (grunt) {
470459 concurrent: {
471460 server : [ < % if ( filters . coffee ) { % >
472461 'coffee' , < % } %> < % if ( filters . babel ) { % >
473- 'babel',< % } % > < % if ( filters . jade ) { % >
462+ 'newer: babel:client ',< % } % > < % if ( filters . jade ) { % >
474463 'jade',< % } % > < % if ( filters . stylus ) { % >
475464 'stylus',< % } % > < % if ( filters . sass ) { % >
476465 'sass',< % } % > < % if ( filters . less ) { % >
477466 'less',< % } % >
478467 ],
479468 test: [< % if ( filters . coffee ) { % >
480469 'coffee',< % } % > < % if ( filters . babel ) { % >
481- 'babel',< % } % > < % if ( filters . jade ) { % >
470+ 'newer: babel:client ',< % } % > < % if ( filters . jade ) { % >
482471 'jade',< % } % > < % if ( filters . stylus ) { % >
483472 'stylus',< % } % > < % if ( filters . sass ) { % >
484473 'sass',< % } % > < % if ( filters . less ) { % >
@@ -495,7 +484,7 @@ module.exports = function (grunt) {
495484 } ,
496485 dist: [< % if ( filters . coffee ) { % >
497486 'coffee',< % } % > < % if ( filters . babel ) { % >
498- 'babel',< % } % > < % if ( filters . jade ) { % >
487+ 'newer: babel:client ',< % } % > < % if ( filters . jade ) { % >
499488 'jade',< % } % > < % if ( filters . stylus ) { % >
500489 'stylus',< % } % > < % if ( filters . sass ) { % >
501490 'sass',< % } % > < % if ( filters . less ) { % >
@@ -639,10 +628,10 @@ module.exports = function (grunt) {
639628 options : {
640629 sourceMap : true
641630 } ,
642- server : {
631+ client : {
643632 files : [ {
644633 expand : true ,
645- cwd : 'client' ,
634+ cwd : '<%%= yeoman. client %> ' ,
646635 src : [
647636 '{app,components}/**/*.js' ,
648637 '!{app,components}/**/*.spec.js'
0 commit comments