From 669757869eadb64139e45ee5423b0780292fe90f Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 18 Oct 2017 18:03:09 +0800 Subject: [PATCH] watchman: update --- watchman.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/watchman.md b/watchman.md index 9daa72666..acc7f84e8 100644 --- a/watchman.md +++ b/watchman.md @@ -1,12 +1,28 @@ -# Watchman +--- +title: Watchman +layout: 2017/sheet +updated: 2017-10-18 +weight: -1 +keywords: +- "watchman watch ~/src" +- "watchman watch-list" +- "watchman -- trigger ~/rsc remake '*.js' -- make " +--- ### Getting started +```bash +watchman watch ./src ``` -watchman watch ~/src -watchman -- trigger ~/src remake '*.js' -- make + +Adds `./src` to the watch list. + +```bash +watchman -- trigger ./src retest '*.js' -- npm test ``` +Adds a trigger called `retest` to run `npm test` every time `*.js` changes in `./src`. + ### Watching ``` @@ -15,6 +31,6 @@ watchman watch-list watchman watch-del ~/src ``` -### Reference +## Also see - * [Documentation](https://facebook.github.io/watchman/docs/install.html) (github.io) + * [Documentation](https://facebook.github.io/watchman/docs/install.html) _(facebook.github.io)_