-gulp.task('watch-dev', ['clean-build-app-dev', 'validate-devserver-scripts'], function() {
-
- // start nodemon to auto-reload the dev server
- plugins.nodemon({ exec: 'node ' + nodeopts, script: backend+'/server.js', ext: 'js', watch: [backend], env: {NODE_ENV : 'dev'} })
- .on('change', ['validate-devserver-scripts'])
- .on('restart', function () {
- console.log('[nodemon] restarted dev server');
- });
-
- // start live-reload server
- plugins.livereload.listen({ start: true });
-
- // watch index
- gulp.watch(paths.index, function() {
- return pipes.builtIndexDev()
- .pipe(plugins.livereload());
- });