Skip to content

Commit

Permalink
Renames gulp file and also updates syntax for gulp 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Upton committed Aug 5, 2020
1 parent 4ec5986 commit ad2f4bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gulp-tasks/legacy_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(gulp) {
return function() {
var stream = gulp.watch(
['./legacy/**.styl'], ['legacy']
['./legacy/**.styl'], gulp.series('legacy')
);
return stream;
};
Expand Down
2 changes: 1 addition & 1 deletion gulp-tasks/scripts_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = function(gulp) {
return function() {
var stream = gulp.watch(['./scripts/**/*.js'], ['scripts']);
var stream = gulp.watch(['./scripts/**/*.js'], gulp.series('scripts'));

return stream;
};
Expand Down
2 changes: 1 addition & 1 deletion gulp-tasks/stylus_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function(gulp) {
return function() {
var stream = gulp.watch(
['./stylesheets/**/**.styl'],
['stylus', 'stylus:ie']
gulp.series('stylus', 'stylus:ie')
);

return stream;
Expand Down
8 changes: 4 additions & 4 deletions Gulpfile.js → gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ gulp.task('docson', () =>
.src('node_modules/docson/public/**')
.pipe(gulp.dest(options.paths.docson))
);
gulp.task('build', [
gulp.task('build', gulp.parallel(
'fonts',
'images',
'legacy',
'stylus',
'scripts',
'stylus:ie',
'docson',
]);
gulp.task('default', [
));
gulp.task('default', gulp.parallel(
'fonts',
'images',
'legacy',
Expand All @@ -74,4 +74,4 @@ gulp.task('default', [
'stylus:ie',
'watch:stylus',
'watch:legacy',
]);
));

0 comments on commit ad2f4bf

Please sign in to comment.