plumberjs/plumber-glob — pull request #5 by OliverJAsh (2014-10-25 19:39:19+00:00)
Title: Do not Gaze files matching excluded patterns

I am running into `EMFILE` errors with the following use case:

```
glob.within('./sbscribe-api').exclude('./node_modules/**/*')('./**/*.js')
```

plumber-glob excludes files matching this pattern from the returned collections of resources. However, it does not exclude them from the collection of files being watched (via Gaze). As a result, plumber-glob is watching all of the files in my `node_modules` folder, of which there are many, causing an `EMFILE` error. :unamused:

I would like to write and submit a failing test for this, but it's hard to setup the mock for Gaze.