Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G gulp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gulp
  • gulp
  • Issues
  • #977
Closed
Open
Issue created Mar 22, 2015 by contra@yocontraContributor

remove array and string usage from gulp.watch

gulp.watch('glob', ['task1', 'task2'])
gulp.watch('glob', 'task2')

will have to be changed to

gulp.watch('glob', gulp.parallel('task1', 'task2'))
gulp.watch('glob', gulp.task('task2'))

This makes it a lot clearer what is going on.

Lots of documentation is going to need to be updated.

Semi-related: I also think we should discourage use of a watch task and just have people do it like this

gulp.task('a', fn);
gulp.task('b', fn);

gulp.watch('glob', gulp.parallel('a', 'b'));

and if they have a flag for when to watch it can be as simple as

gulp.task('a', fn);
gulp.task('b', fn);

if (process.env.NODE_ENV !== 'production) {
  gulp.watch('glob', gulp.parallel('a', 'b'));
}

I feel like this would simplify a lot of things

Assignee
Assign to
Time tracking