@@ -51,33 +51,16 @@ gulp.task('nodemon', function () {
5151 script : 'server.js' ,
5252 nodeArgs : [ '--debug' ] ,
5353 ext : 'js,html' ,
54+ verbose : true ,
5455 watch : _ . union ( defaultAssets . server . views , defaultAssets . server . allJS , defaultAssets . server . config )
5556 } ) ;
5657} ) ;
5758
58- gulp . task ( 'node-inspector' , function ( ) {
59- gulp . src ( [ ] )
60- . pipe ( plugins . nodeInspector ( {
61- debugPort : 5858 ,
62- webHost : '0.0.0.0' ,
63- webPort : 1337 ,
64- saveLiveEdit : false ,
65- preload : true ,
66- inject : true ,
67- hidden : [ ] ,
68- stackTraceLimit : 50 ,
69- sslKey : '' ,
70- sslCert : ''
71- } ) ) ;
72- } ) ;
73-
74- // Nodemon debug task
75- gulp . task ( 'nodemon-debug' , function ( ) {
59+ // Nodemon task without verbosity or debugging
60+ gulp . task ( 'nodemon-nodebug' , function ( ) {
7661 return plugins . nodemon ( {
7762 script : 'server.js' ,
78- nodeArgs : [ '--debug' ] ,
7963 ext : 'js,html' ,
80- verbose : true ,
8164 watch : _ . union ( defaultAssets . server . views , defaultAssets . server . allJS , defaultAssets . server . config )
8265 } ) ;
8366} ) ;
@@ -463,10 +446,10 @@ gulp.task('default', function (done) {
463446
464447// Run the project in debug mode
465448gulp . task ( 'debug' , function ( done ) {
466- runSequence ( 'env:dev' , [ 'copyLocalEnvConfig' , 'makeUploadsDir' ] , 'lint' , [ 'node-inspector' , ' nodemon-debug ', 'watch' ] , done ) ;
449+ runSequence ( 'env:dev' , [ 'copyLocalEnvConfig' , 'makeUploadsDir' ] , 'lint' , [ 'nodemon-nodebug ' , 'watch' ] , done ) ;
467450} ) ;
468451
469452// Run the project in production mode
470453gulp . task ( 'prod' , function ( done ) {
471- runSequence ( [ 'copyLocalEnvConfig' , 'makeUploadsDir' , 'templatecache' ] , 'build' , 'env:prod' , 'lint' , [ 'nodemon' , 'watch' ] , done ) ;
454+ runSequence ( [ 'copyLocalEnvConfig' , 'makeUploadsDir' , 'templatecache' ] , 'build' , 'env:prod' , 'lint' , [ 'nodemon-nodebug ' , 'watch' ] , done ) ;
472455} ) ;
0 commit comments