Skip to content

Commit 8e94d1c

Browse files
authored
Update to gulp 4.0. (#80)
1 parent c8da169 commit 8e94d1c

File tree

3 files changed

+2834
-1052
lines changed

3 files changed

+2834
-1052
lines changed

gulpfile.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
var gulp = require('gulp'),
55
mocha = require('gulp-mocha'),
6-
eslint = require('gulp-eslint');
7-
8-
var paths = {
9-
scripts: ['./*.js', './lib/*.js', '!./gulpfile.js']
10-
};
6+
eslint = require('gulp-eslint'),
7+
paths = {
8+
scripts: ['./*.js', './lib/*.js', '!./gulpfile.js']
9+
};
1110

1211
gulp.task('lint', function () {
1312
return gulp.src(paths.scripts)
@@ -22,7 +21,7 @@ gulp.task('test', function () {
2221
});
2322

2423
gulp.task('watch', function () {
25-
gulp.watch(paths.scripts, ['lint', 'test']);
24+
gulp.watch(paths.scripts, gulp.parallel('lint', 'test'));
2625
});
2726

28-
gulp.task('default', ['lint', 'test', 'watch']);
27+
gulp.task('default', gulp.parallel('lint', 'test', 'watch'));

0 commit comments

Comments
 (0)