Adding server gulpfile
This commit is contained in:
parent
62f472bdb3
commit
1ef7cae451
13
server/gulpfile.js
Normal file
13
server/gulpfile.js
Normal 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']);
|
Loading…
Reference in New Issue
Block a user