Skip to content
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

Add ability for CLI to watch multiple directories #74

Merged
merged 2 commits into from
Apr 6, 2015

Conversation

tejacques
Copy link
Contributor

This is accomplished in two parts

  • Uses an array of directories from the arguments rather than a single directory
  • The current CLI behavior is to run the command at the beginning as well as any time a file changes in the directory. By running one watchTree call per directory, this causes the most likely unwanted behavior of running the command once per directory watched. This is fixed by skipping running the command all but one time.

Happy to make any modifications/improvements.

finnp added a commit that referenced this pull request Apr 6, 2015
Add ability for CLI to watch multiple directories
@finnp finnp merged commit 6962a71 into mikeal:master Apr 6, 2015
@finnp
Copy link
Collaborator

finnp commented Apr 6, 2015

Awesome, published as 0.16.0. Any more PRs for the module welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants