1

Adding server gulpfile

This commit is contained in:
Alex Yatskov 2014-10-02 16:37:43 +09:00
parent 62f472bdb3
commit 1ef7cae451

13
server/gulpfile.js Normal file
View File

@ -0,0 +1,13 @@
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var nodemon = require('gulp-nodemon');
gulp.task('lint', function() {
gulp.src(['*.js']).pipe(jshint());
});
gulp.task('develop', function() {
return nodemon({ script: 'server.js', ext: 'js', port: 8000 }).on('change', ['lint']);
});
gulp.task('default', ['lint', 'develop']);