@emit-js/watchman

1.0.27 • Public • Published

@emit-js/watchman

emit watchman triggers

watchman

Install

npm install -g @emit-js/cli @emit-js/spawn @emit-js/watchman

You'll also need to start watchman (brew install watchman).

Usage

In the examples below, we want to trigger npm run build when *.js changes:

emit watchman --glob="*.js" --command=npm --args=run --args=build

Detect glob from script entry

If you have a package.json script with the glob somewhere in it:

{
  "scripts": {
    "build": "babel *.js --out-dir dist --source-maps"
  }
}

The --script option is a quick way to add a trigger:

emit watchman --script=build

Readme

Keywords

Package Sidebar

Install

npm i @emit-js/watchman

Weekly Downloads

0

Version

1.0.27

License

MIT

Unpacked Size

23.1 kB

Total Files

13

Last publish

Collaborators

  • winton