Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

3 anos atrás
12345678910111213141516171819202122232425262728293031323334
  1. # fb-watchman
  2. `fb-watchman` is a filesystem watcher that uses the
  3. [Watchman](https://facebook.github.io/watchman/) file watching service from
  4. Facebook.
  5. Watchman provides file change notification services using very
  6. efficient recursive watches and also allows more advanced change matching and
  7. filesystem tree querying operations using
  8. [a powerful expression syntax](https://facebook.github.io/watchman/docs/file-query.html#expressions).
  9. ## Install
  10. You should [install Watchman](
  11. https://facebook.github.io/watchman/docs/install.html) to make the most of this
  12. module.
  13. Then simply:
  14. ```
  15. $ npm install fb-watchman
  16. ```
  17. ## Key Concepts
  18. - Watchman recursively watches directories.
  19. - Each watched directory is called a `root`.
  20. - You must initiate a `watch` on a `root` using the `watch-project` command prior to subscribing to changes
  21. - Rather than separately watching many sibling directories, `watch-project` consolidates and re-uses existing watches relative to a project root (the location of your `.watchmanconfig` or source control repository root)
  22. - change notifications are relative to the project root
  23. ## How do I use it?
  24. [Read the NodeJS watchman documentation](https://facebook.github.io/watchman/docs/nodejs.html)