-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
30 lines (23 loc) · 721 Bytes
/
gulpfile.js
File metadata and controls
30 lines (23 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
const gulp = require('gulp');
const runSequence = require('run-sequence');
const plugins = require('gulp-load-plugins')();
gulp.task('eslint', function () {
return gulp.src(['server.js', 'server/**/*.js', 'public/modules/**/*.js'])
.pipe(plugins.eslint())
.pipe(plugins.eslint.format());
});
gulp.task('watch', function() {
// gulp.watch(['public/modules/**/*', 'webpack.config.js'], ['webpack']);
});
gulp.task('nodemon', function() {
return plugins.nodemon({
script: 'server.js',
nodeArgs: ['--debug=5859'],
ext: 'js,html',
watch: ['server/**/*', 'config/**/*']
});
});
gulp.task('default', function (done) {
runSequence('eslint', ['nodemon', 'watch'], done);
});