feat(gulp): Add node-inspector task to Gulp

This commit is contained in:
IteloFilho
2016-02-14 15:01:12 -03:00
parent a069531b10
commit 936379da20
2 changed files with 16 additions and 1 deletions

View File

@@ -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 = [];
@@ -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

View File

@@ -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",