@@ -375,17 +375,29 @@ gulp.task('start:client', cb => {
375
375
} ) ;
376
376
} ) ;
377
377
378
+ gulp . task ( 'start:server' , ( ) => {
379
+ process . env . NODE_ENV = process . env . NODE_ENV || 'development' ;
380
+ config = require ( `./${ serverPath } /config/environment` ) ;
381
+ nodemon ( `-w ${ serverPath } ${ serverPath } ` )
382
+ . on ( 'log' , onServerLog ) ;
383
+ } ) ;
384
+
378
385
gulp . task ( 'start:server:prod' , ( ) => {
379
386
process . env . NODE_ENV = process . env . NODE_ENV || 'production' ;
380
387
config = require ( `./${ paths . dist } /${ serverPath } /config/environment` ) ;
381
388
nodemon ( `-w ${ paths . dist } /${ serverPath } ${ paths . dist } /${ serverPath } ` )
382
389
. on ( 'log' , onServerLog ) ;
383
390
} ) ;
384
391
385
- gulp . task ( 'start:server' , ( ) => {
392
+ gulp . task ( 'start:inspector' , ( ) => {
393
+ gulp . src ( [ ] )
394
+ . pipe ( plugins . nodeInspector ( ) ) ;
395
+ } ) ;
396
+
397
+ gulp . task ( 'start:server:debug' , ( ) => {
386
398
process . env . NODE_ENV = process . env . NODE_ENV || 'development' ;
387
- config = require ( `./${ serverPath } /config/environment` ) ;
388
- nodemon ( `-w ${ serverPath } ${ serverPath } ` )
399
+ config = require ( `./${ serverPath } /config/environment` ) ;
400
+ nodemon ( `-w ${ serverPath } --debug-brk ${ serverPath } ` )
389
401
. on ( 'log' , onServerLog ) ;
390
402
} ) ;
391
403
@@ -443,6 +455,17 @@ gulp.task('serve:dist', cb => {
443
455
cb ) ;
444
456
} ) ;
445
457
458
+ gulp . task ( 'serve:debug' , cb => {
459
+ runSequence ( [ 'clean:tmp' , 'constant' < % if ( filters . ts ) { % > , 'tsd' < % } % > ] ,
460
+ [ 'lint:scripts' , 'inject' < % if ( filters . jade ) { % > , 'jade' < % } % > ] ,
461
+ [ 'wiredep:client' ] ,
462
+ [ 'transpile:client' , 'styles' ] ,
463
+ 'start:inspector' ,
464
+ [ 'start:server:debug' , 'start:client' ] ,
465
+ 'watch' ,
466
+ cb ) ;
467
+ } ) ;
468
+
446
469
gulp . task ( 'test' , cb => {
447
470
return runSequence ( 'test:server' , 'test:client' , cb ) ;
448
471
} ) ;
0 commit comments