1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-15 21:44:51 +02:00
Files
cheatsheets/watchexec.md
Rico Sta. Cruz 511de900ba Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00

1.2 KiB

title, updated, category, weight, keywords, intro
title updated category weight keywords intro
Watchexec 2017-10-18 CLI -1
watchexec --excts js,jsx -- npm test
watchexec --help
[mattgreen/watchexec](https://github.com/mattgreen/watchexec) runs commands whenever certain files change.

Installation

OSX

brew install watchexec

Rust

cargo install watchexec

For Linux and Windows, get it from GitHub releases.

Getting started

watchexec --exts js,jsx -- npm test

Runs npm test when js,jsx files change.

watchman -w lib -w test -- npm test

Runs npm test when lib/ and test/ files change.

Other options

Flags

| -c --clear | Clear screen | | -r --restart | Restart process if its still running |

Options

| -s --signal SIGKILL | Kill signal to use | | -d --debounce MS | Debounce by MS milliseconds | | -e --exts EXTS | Extensions | | -i --ignore PATTERN | Ignore these files | | -w --watch PATH | Watch these directories |

Also see