Skip to content

Commit

Permalink
fix(debug): fixing gulp node debug task (#1689)
Browse files Browse the repository at this point in the history
[v2] - MEAN.JS API - fix(debug): fixing gulp node debug task
  • Loading branch information
lirantal committed Dec 28, 2016
1 parent 3f9a872 commit 531e3a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions server/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ gulp.task('env:prod', function () {
gulp.task('nodemon', function () {
return plugins.nodemon({
script: 'server.js',
nodeArgs: ['--debug'],
nodeArgs: ['--harmony'],
ext: 'js,html',
verbose: true,
watch: _.union(defaultAssets.server.views, defaultAssets.server.allJS, defaultAssets.server.config)
});
});

// Nodemon task without verbosity or debugging
gulp.task('nodemon-nodebug', function () {
gulp.task('nodemon-debug', function () {
return plugins.nodemon({
script: 'server.js',
nodeArgs: ['--harmony', '--debug', '--inspect'],
ext: 'js,html',
watch: _.union(defaultAssets.server.views, defaultAssets.server.allJS, defaultAssets.server.config)
});
Expand Down Expand Up @@ -209,7 +210,7 @@ gulp.task('default', function (done) {

// Run the project in debug mode
gulp.task('debug', function (done) {
runSequence('env:dev', ['copyLocalEnvConfig', 'makeUploadsDir'], ['nodemon-nodebug', 'watch'], done);
runSequence('env:dev', ['copyLocalEnvConfig', 'makeUploadsDir'], ['nodemon-debug', 'watch'], done);
});

// Run the project in production mode
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"reinstall": "npm cache clean && npm run clean && npm install",
"start": "gulp",
"start:prod": "gulp prod",
"start:debug": "node-debug --web-host 0.0.0.0 server.js & gulp debug",
"start:debug": "gulp debug",
"gulp": "gulp",
"test": "gulp test",
"test:server": "gulp test:server",
Expand Down

0 comments on commit 531e3a1

Please sign in to comment.