Skip to content

Possible confusion in event names for gulp.watch in docs #262

Description

@MarkLeMerise

This might not be an issue, but it tripped me up, and might need slight clarifying. In the documentation it states for gulp.watch that "This always returns an EventEmitter that emits changed events."

While this may be true of gaze, the actual event name that is emitted by gulp.watch is change. The example given in the documentation uses change. I just thought this was a bit confusing as I thought I could use changed, but gulp.watch only uses change. Is there access to the raw EventEmitter or something? Just wondering.

Activity

  1. yocontra commented on Feb 11, 2014

    @yocontra
    Member

    nice catch. PR?

  2. MarkLeMerise commented on Feb 11, 2014

    @MarkLeMerise
    ContributorAuthor

    Well, was it intended for gulp to normalize changed to change because the event object in the gulp.watch callback also calls it changed?

  3. yocontra commented on Feb 11, 2014

    @yocontra
    Member

    The event is change

  4. MarkLeMerise commented on Feb 11, 2014

    @MarkLeMerise
    ContributorAuthor

    Sent a PR as #263
    Sorry, not familiar with associating a PR to an issue.

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

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