1.0.2 • Published 5 months ago

chwatch v1.0.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
5 months ago

chwatch

Very simple CLI tool to cheaply watch files and run a command on changes.

This is basically a command line wrapper of conduitry/cheap-watch, meant to be used during development of simple libraries.

Install

The normal ways:

npm install chwatch

Or just use it:

npx chwatch <ARGS>

Using

The CLI takes any number of input strings as regex matchers, but the last one is the command to execute.

Example: watch for any *.js file changes in a src directory, and run npm run build if any change.

chwatch "src/.+\.js$" "npm run build"

Example: like the above example, but also watch *.md files in a docs directory.

chwatch "src/.+\.js$" "docs/.+\.md$" "npm run build"

It always executes in the context of whatever directory you run it in.

License

Published and released under the Very Open License.

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.0

5 months ago