# @emit-js/watchman

> emit watchman triggers

Latest version **1.0.27** (published 2019-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @emit-js/watchman
pnpm add @emit-js/watchman
yarn add @emit-js/watchman
bun add @emit-js/watchman
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.27 |
| Published | 2019-04-07 |
| First published | 2019-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 22.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | emit |
| Maintainers | winton |
| Keywords | emit, watchman, trigger |

## Links

- npm: https://www.npmjs.com/package/@emit-js/watchman
- Repository: https://github.com/emit-js/watchman
- Homepage: https://github.com/emit-js/watchman#readme
- Issues: https://github.com/emit-js/watchman/issues
- npm.io page: https://npm.io/package/@emit-js/watchman

## Dependencies (2)

- [fs-extra](https://npm.io/package/fs-extra.md) 7.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) 7.4.3

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.27 (latest) — 2019-04-07
- 1.0.26 — 2019-04-07
- 1.0.24 — 2019-04-07

## README

# @emit-js/watchman

emit watchman triggers

![watchman](watchman.gif)

## Install

```bash
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:

```js
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:

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

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

```js
emit watchman --script=build
```

---
_Source: https://npm.io/package/@emit-js/watchman · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
