Commit | Line | Data |
---|---|---|
c5c47010 BA |
1 | const gulp = require('gulp'); |
2 | const nodemon = require('gulp-nodemon'); //reload server on changes | |
1d184b4c | 3 | |
c5c47010 | 4 | const nodemonOptions = { |
dac39588 BA |
5 | script: 'bin/www', |
6 | ext: 'js', | |
7 | env: { 'NODE_ENV': 'development' }, | |
8 | verbose: true, | |
9 | watch: ['./','routes','bin'] | |
1d184b4c BA |
10 | }; |
11 | ||
12 | gulp.task('start', function () { | |
dac39588 BA |
13 | nodemon(nodemonOptions) |
14 | .on('restart', function () { | |
15 | console.log('restarted!') | |
16 | }); | |
1d184b4c | 17 | }); |