-
Notifications
You must be signed in to change notification settings - Fork 66
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
Watcher plugin API #54
Comments
yes! |
It's worth looking into the NodeWatcher again with iojs. It might be good enough now without any native extensions. I remember seeing a few patches on libuv for better watching (and less fsevents bugs) |
Nice to hear that. Will be able to test it on a moderately sized project once react-native's dependencies have been updated to support io.js 3.x. |
Didn't investigate deeply but did run into "too many open files" after uninstalling watchman:
The packager works fine with watchman or chokidar though. |
As a start for a proposal:
For a concrete example, this is how you would use the ChokidarWatcher. ...
let cw = new require('sane-chokidar');
let w = sane('.', {watcher: cw});
... |
As mentioned on the PR. This is fine by me, but I'm missing the point of this if |
Branching off the discussion about the chokidar watcher in #53, I've been thinking that a plugin API could be useful to let users of sane (e.g. me) use custom watchers without bloating the sane package or adding too much maintenance cost.
My end goal is to be able to use a custom watcher with the RN packager where the pieces are layered like this:
(The packager would also expose a flag to set the watcher implementation.)
At a high level is this something you'd be open to?
The text was updated successfully, but these errors were encountered: