From 141e063d93abcb5296eaadf0ca22e298385c598d Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Mon, 30 Aug 2021 19:55:11 -0700 Subject: [PATCH] Update watch for gulp >= 4 --- gulpfile.js | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2a61fe7..ff26da4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -15,5 +15,5 @@ gulp.task('default', function () { }); gulp.task('watch', function () { - gulp.watch('test/fixtures/*.js', ['default']); + gulp.watch('test/fixtures/*.js', gulp.series('default')); }); diff --git a/readme.md b/readme.md index bdaeca9..0f58bc2 100644 --- a/readme.md +++ b/readme.md @@ -98,7 +98,7 @@ gulp.task('build', function() { }); gulp.task('default', ['build'], function() { - gulp.watch(['src/**/*.js'], ['build']); + gulp.watch(['src/**/*.js'], gulp.series('build')); }); ```