Skip to content

gulp watch -> task setup #76

Closed
Closed
@yocontra

Description

@yocontra

It seems like 90% of the time people are simply saying "watch this glob and run this task when it changes".

Right now this code can get pretty long and verbose (https://gist.github.com/Sigmus/8171005)

I'm not sure exactly what the syntax should look like but we need a glob->run task sugar util.

Possible option is having .watch take an object where the key is the task name and the value is the glob or array of globs that trigger it. Could also go the other way around.

https://gist.github.com/Contra/8175813

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions