From 9afef2956a69fea9eb222adae1f3a06245b763d1 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Fri, 1 Mar 2019 01:00:00 +0100 Subject: [PATCH] =?UTF-8?q?chore(package):=20Update=20gulp=20to=C2=A0versi?= =?UTF-8?q?on=C2=A04.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 12 +++++++----- package.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 9837f2bf18..6759e12fc6 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 9ef549d3d8..e41b1caa91 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",