b05610e2feb4eb3551ed583b4ae79f078a2fb259
[qomet.git] / gulpfile.js
1 var gulp = require('gulp');
2 var nodemon = require('gulp-nodemon'); //reload server on changes
3
4 var nodemonOptions = {
5 script: 'bin/www',
6 ext: 'js',
7 env: { 'NODE_ENV': 'development' },
8 verbose: true,
9 watch: ['./','config','utils','routes','models','entities']
10 };
11
12 gulp.task('server', function () {
13 nodemon(nodemonOptions)
14 .on('restart', function () {
15 console.log('restarted!')
16 });
17 });