Skip to content
Snippets Groups Projects
Commit b9fe2843 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

add ignored files to nodemon watch

parent edb1bc09
No related branches found
No related tags found
2 merge requests!10Gulp,!7Refactor enrollments route to include query building
Pipeline #
...@@ -25,17 +25,15 @@ function compile() { ...@@ -25,17 +25,15 @@ function compile() {
} }
gulp.task('default', function() { gulp.task('default', ['run']);
}); gulp.task('test', () => {
gulp.task('test', function(){
gulp.src('test/test.js', {read: false}) gulp.src('test/test.js', {read: false})
.pipe(mocha()) .pipe(mocha())
.once('error', function(){ .once('error', () => {
process.exit(1); process.exit(1);
}) })
.once('end', function(){ .once('end', () => {
process.exit(); process.exit();
}) })
}); });
...@@ -44,10 +42,11 @@ gulp.task('watch', [], () => { ...@@ -44,10 +42,11 @@ gulp.task('watch', [], () => {
compile(); compile();
}); });
gulp.task('run', function () { gulp.task('run', () => {
nodemon({ nodemon({
script: 'server.js', script: 'server.js',
tasks: ['watch'], tasks: ['watch'],
ignore: ["test/test.js", "gulpfile.js"],
ext: 'js html', ext: 'js html',
env: { 'NODE_ENV': 'development' } env: { 'NODE_ENV': 'development' }
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment