Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git] / server / gulpfile.js
diff --git a/server/gulpfile.js b/server/gulpfile.js
new file mode 100644 (file)
index 0000000..ae739d9
--- /dev/null
@@ -0,0 +1,17 @@
+var gulp = require('gulp');
+var nodemon = require('gulp-nodemon'); //reload server on changes
+
+var nodemonOptions = {
+       script: 'bin/www',
+       ext: 'js',
+       env: { 'NODE_ENV': 'development' },
+       verbose: true,
+       watch: ['./','routes','bin']
+};
+
+gulp.task('start', function () {
+       nodemon(nodemonOptions)
+       .on('restart', function () {
+               console.log('restarted!')
+       });
+});