@dot-event/watchman
Version:
dot-event watchman operation
43 lines (33 loc) • 636 B
Markdown
# @dot-event/watchman
dot-event watchman operation

```bash
npm install -g @dot-event/watchman
```
Configure `package.json`:
```json
{
"operations": {
"watchman": {
"triggers": [
{
"name": "babel",
"expression": [
"anyof",
["match", "lib/**/*.js", "wholename"]
],
"command": ["npm", "run", "build"]
}
]
}
}
}
```
Create watchman triggers:
```bash
dot-watchman
```
Remove watchman triggers:
```bash
dot-watchman --remove
```