Menu

gitpiper

Watchexec Cheat Sheet in December 2024

Last Updated: 19 December 2024

README.md

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


338+ more cheat sheets for you in December 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️