From 5eda6120010ba61748ae8a553389f1747b38123e Mon Sep 17 00:00:00 2001 From: Joey Nichols Date: Fri, 8 Jun 2018 15:04:02 -0400 Subject: [PATCH] Clarify gulpfile.babel.js example in the README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a16aaa1f..57a05d28e 100644 --- a/README.md +++ b/README.md @@ -181,12 +181,16 @@ function watchFiles() { } export { watchFiles as watch }; +/* + * Specify if tasks run in series or parallel using `gulp.series` and `gulp.parallel` + */ +const build = gulp.series(clean, gulp.parallel(styles, scripts)); + /* * You can still use `gulp.task` * for example to set task names that would otherwise be invalid */ -const clean = gulp.series(clean, gulp.parallel(styles, scripts)); -gulp.task('clean', clean); +gulp.task('build', build); /* * Export a default task