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

Commit

Permalink
fix(gulp) remove gulp-node-inspector dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal committed Mar 6, 2016
1 parent 8f00edc commit 0b13107
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
28 changes: 13 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ gulp.task('nodemon', function () {
});
});

// Nodemon debug task
gulp.task('nodemon-debug', function () {
return plugins.nodemon({
exec: 'node_modules/node-inspector/bin/inspector.js --save-live-edit --preload=false --web-port 1337 & node --debug',
script: 'server.js',
nodeArgs: ['--debug'],
ext: 'js,html',
verbose: true,
watch: _.union(defaultAssets.server.views, defaultAssets.server.allJS, defaultAssets.server.config)
});
});

// Watch Files For Changes
gulp.task('watch', function () {
// Start livereload
Expand Down Expand Up @@ -203,20 +215,6 @@ 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 @@ -376,7 +374,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', 'node-inspector'], done);
runSequence('env:dev', ['copyLocalEnvConfig', 'makeUploadsDir'], 'lint', ['nodemon-debug', 'watch'], done);
});

// Run the project in production mode
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
"gulp-mocha": "~2.2.0",
"gulp-ng-annotate": "~1.1.0",
"gulp-nodemon": "~2.0.6",
"gulp-node-inspector": "~0.1.0",
"gulp-protractor": "~1.0.0",
"gulp-rename": "~1.2.2",
"gulp-sass": "~2.2.0",
Expand All @@ -119,6 +118,7 @@
"karma-phantomjs-launcher": "~1.0.0",
"load-grunt-tasks": "~3.2.0",
"mock-fs": "~3.7.0",
"node-inspector": "~0.12.7",
"run-sequence": "~1.1.5",
"should": "~8.2.2",
"supertest": "~1.2.0",
Expand Down

0 comments on commit 0b13107

Please sign in to comment.