Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
feat(gulp): Add node-inspector task to Gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
itelo committed Feb 14, 2016
1 parent a069531 commit 936379d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,20 @@ gulp.task('imagemin', function () {
.pipe(gulp.dest('public/dist/img'));
});

// node-inspector task
gulp.task('node-inspector', function () {
return gulp.src([])
.pipe(plugins.nodeInspector({
debugPort: 5858,
webHost: 'localhost',
webPort: 1337,
saveLiveEdit: true,
preload: false,
hidden: [],
stackTraceLimit: 50,
}));
});

// Copy local development environment config example
gulp.task('copyLocalEnvConfig', function () {
var src = [];
Expand Down Expand Up @@ -362,7 +376,7 @@ gulp.task('default', function (done) {

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

// Run the project in production mode
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"gulp-mocha": "~2.1.2",
"gulp-ng-annotate": "~1.0.0",
"gulp-nodemon": "~2.0.3",
"gulp-node-inspector": "~0.1.0",
"gulp-protractor": "~1.0.0",
"gulp-rename": "~1.2.2",
"gulp-sass": "~2.0.3",
Expand Down

0 comments on commit 936379d

Please sign in to comment.