Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md Document error, miss 'build' task #2099

Comments

@Roamin
Copy link

Roamin commented Jan 18, 2018

What were you expecting to happen?
There is a build task
What actually happened?
Cann’t find it. (The sample written in ES2015)
bug

What version of gulp are you using?
4.0
What versions of npm and node are you using?
It does'nt matter

@demurgos
Copy link
Member

demurgos commented Jan 18, 2018

Instead of:

const clean = gulp.series(clean, gulp.parallel(styles, scripts));
gulp.task('clean', clean);

It should be:

const build = gulp.series(clean, gulp.parallel(styles, scripts));
gulp.task('build', build);

Thanks for reporting the issue, I'll send a PR.

demurgos added a commit to demurgos/gulp that referenced this issue Jan 18, 2018
The task `clean` was defined twice and the `build` task was missing in
the ES2015 example.
This commit renames the second `clean` task to `build` to match the ES5
example.

Closes gulpjs#2099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment