@@ -259,7 +259,7 @@ gulp.task('watch', () => {
259259
260260gulp . task ( 'serve' , cb => {
261261 runSequence ( [ 'clean:tmp' , 'constant' ] ,
262- [ 'lint:scripts' , 'inject' ] ,
262+ [ 'lint:scripts' , 'inject' < % if ( filters . jade ) { % > , 'jade' < % } % > ] ,
263263 [ 'wiredep:client' ] , < % if ( filters . babel || filters . coffee ) { % >
264264 [ 'transpile:client' , 'styles' ] , < % } else { % >
265265 'styles' , < % } % >
@@ -407,16 +407,21 @@ gulp.task('html', function () {
407407 module : '<%= scriptAppName %>'
408408 } ) )
409409 . pipe ( gulp . dest ( '.tmp' ) ) ;
410- } ) ;
410+ } ) ; < % if ( filters . jade ) { % >
411+ gulp . task ( 'jade' , function ( ) {
412+ gulp . src ( paths . client . views )
413+ . pipe ( plugins . jade ( ) )
414+ . pipe ( gulp . dest ( '.tmp' ) ) ;
415+ } ) ; < % } % >
411416
412417gulp . task ( 'constant' , function ( ) {
413418 var config = require ( './server/config/environment/shared' ) ;
414419 plugins . ngConstant ( {
415- name : 'tempApp .constants' ,
420+ name : '<%= scriptAppName %> .constants' ,
416421 deps : [ ] ,
417422 wrap : true ,
418423 stream : true ,
419- constants : config ,
424+ constants : { appConfig : config } ,
420425 } ) . pipe ( plugins . rename ( {
421426 basename : 'app.constant' ,
422427 } ) )
0 commit comments