@@ -259,7 +259,7 @@ gulp.task('watch', () => {
259
259
260
260
gulp . task ( 'serve' , cb => {
261
261
runSequence ( [ 'clean:tmp' , 'constant' ] ,
262
- [ 'lint:scripts' , 'inject' ] ,
262
+ [ 'lint:scripts' , 'inject' < % if ( filters . jade ) { % > , 'jade' < % } % > ] ,
263
263
[ 'wiredep:client' ] , < % if ( filters . babel || filters . coffee ) { % >
264
264
[ 'transpile:client' , 'styles' ] , < % } else { % >
265
265
'styles' , < % } % >
@@ -407,16 +407,21 @@ gulp.task('html', function () {
407
407
module : '<%= scriptAppName %>'
408
408
} ) )
409
409
. 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
+ } ) ; < % } % >
411
416
412
417
gulp . task ( 'constant' , function ( ) {
413
418
var config = require ( './server/config/environment/shared' ) ;
414
419
plugins . ngConstant ( {
415
- name : 'tempApp .constants' ,
420
+ name : '<%= scriptAppName %> .constants' ,
416
421
deps : [ ] ,
417
422
wrap : true ,
418
423
stream : true ,
419
- constants : config ,
424
+ constants : { appConfig : config } ,
420
425
} ) . pipe ( plugins . rename ( {
421
426
basename : 'app.constant' ,
422
427
} ) )
0 commit comments