Update gulp to version 4.0.0 (#1779)
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/gulpfile.js b/gulpfile.js
index 9837f2b..6759e12 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -75,7 +75,7 @@ gulp.task('build', function() {
.pipe(gulp.dest('./'));
});
-gulp.task('plugins', ['languages-plugins'], function(cb) {
+function plugins(cb) {
pump(
[
gulp.src(paths.plugins),
@@ -86,7 +86,7 @@ gulp.task('plugins', ['languages-plugins'], function(cb) {
],
cb
);
-});
+}
gulp.task('components-json', function (cb) {
componentsPromise.then(function (data) {
@@ -97,8 +97,8 @@ gulp.task('components-json', function (cb) {
});
gulp.task('watch', function() {
- gulp.watch(paths.components, ['components', 'build']);
- gulp.watch(paths.plugins, ['plugins', 'build']);
+ gulp.watch(paths.components, gulp.parallel('components', 'build'));
+ gulp.watch(paths.plugins, gulp.parallel('plugins', 'build'));
});
gulp.task('languages-plugins', function (cb) {
@@ -184,6 +184,8 @@ gulp.task('languages-plugins', function (cb) {
});
});
+gulp.task('plugins', gulp.series('languages-plugins', plugins));
+
gulp.task('changelog', function (cb) {
return gulp.src(paths.changelog)
.pipe(replace(
@@ -199,4 +201,4 @@ gulp.task('changelog', function (cb) {
.pipe(gulp.dest('.'));
});
-gulp.task('default', ['components', 'components-json', 'plugins', 'build']);
+gulp.task('default', gulp.parallel('components', 'components-json', 'plugins', 'build'));
diff --git a/package.json b/package.json
index 9ef549d..e41b1ca 100755
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
},
"devDependencies": {
"chai": "^2.3.0",
- "gulp": "^3.8.6",
+ "gulp": "^4.0.0",
"gulp-concat": "^2.3.4",
"gulp-header": "^1.0.5",
"gulp-rename": "^1.2.0",