Skip to content

Commit

Permalink
nodemon cwd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinisa committed Jun 28, 2016
1 parent e431441 commit ca7456d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (gulp.config.isLoaded) {

gulp.task('dist', gulp.series('rebuild:full', 'dist:clean', 'dist:copy', 'dist:configs'));

if (gulp.config.nodemon) {
if (gulp.config.nodemon.script) {
gulp.task('default', gulp.series('rebuild:full', gulp.parallel('nodemon', 'serve')));
} else {
gulp.task('default', gulp.series('rebuild:full', 'serve'));
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js/tasks/nodemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

gulp.task('nodemon', function () {

gulp.config.nodemon.cwd = gulp.config.projectDir;

gulp.plugins.nodemon(gulp.config.nodemon);
});
2 changes: 2 additions & 0 deletions lib/loadconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ var config = {
},
dist: {
public: 'public'
},
nodemon: {
}
};

Expand Down

0 comments on commit ca7456d

Please sign in to comment.