Skip to content

Commit

Permalink
Update gulp to version 4.0.0 (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss authored and RunDevelopment committed Mar 1, 2019
1 parent b06f532 commit 06627f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -86,7 +86,7 @@ gulp.task('plugins', ['languages-plugins'], function(cb) {
],
cb
);
});
}

gulp.task('components-json', function (cb) {
componentsPromise.then(function (data) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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(
Expand All @@ -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'));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 06627f6

Please sign in to comment.