Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.

Commit 7d13cf8

Browse files
authored
Uodate gulp version to 4.0. (#1)
Update gulp version to 4.0.
1 parent 6fa2569 commit 7d13cf8

File tree

3 files changed

+1845
-574
lines changed

3 files changed

+1845
-574
lines changed

gulpfile.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
'use strict';
22
var gulp = require('gulp'),
33
eslint = require('gulp-eslint'),
4-
mocha = require('gulp-mocha');
4+
mocha = require('gulp-mocha'),
5+
paths = {
6+
scripts: [ './*.js', '!./gulpfile.js' ]
7+
};
58

6-
var paths = {
7-
scripts: ['./*.js', '!./gulpfile.js']
8-
};
9-
10-
gulp.task('lint', function() {
9+
gulp.task('lint', function () {
1110
return gulp.src(paths.scripts)
1211
.pipe(eslint())
1312
.pipe(eslint.format());
1413
});
1514

16-
gulp.task('test', function() {
15+
gulp.task('test', function () {
1716
return gulp.src('./test/*.js')
1817
.pipe(mocha());
1918
});
2019

2120
gulp.task('watch', function () {
22-
gulp.watch(paths.scripts, ['lint', 'test']);
21+
gulp.watch(paths.scripts, gulp.parallel('lint', 'test'));
2322
});
2423

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

0 commit comments

Comments
 (0)