Commit 06627f6ac66584b61dfa3e3153564d16b3ca58c8

ExE Boss 2019-03-01T13:41:02

Update gulp to version 4.0.0 (#1779)

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",