The one that maintains the development yard. Watching files and running commands.
# Using Yarn
yarn add yardman
# Using npm
npm install yardman
yardman
Watch files and run commands.
Usage:
yardman [options] [files ...] executable
yardman [[options] [files ...] -exec executable ...] [options] [files ...] executable
Options:
-h, --help This help text
-v, --version Display version information
-x, --exec=executable Executable to run
-n, --npm=script Executable an npm script with the --silent flag
-X, --no-start Do not run the executable on start
-w, --watch=files... Comma separated list of files to monitor for change
-S, --kill-signal=signal Set the kill signal (SIGTERM, SIGKILL), defaults to SIGTERM
-d, --debounce=ms Set the number of milliseconds to wait for before
executing the command after a file change. Useful
when switching branches while watching files.
Variables:
file: The name of the file that just got updated is injected into the
executable command with the template {{file}}
Example:
yardman src make
yardman src -x make build/result.exe ./test
yardman src -x 'file {{file}}'
Yardman can be configured by adding the command line arguments to the
.yardmanrc
file in the current working directory.
Example of a .yardmanrc
# Build project when files in src directory change.
src
-x make
# Run tests when the build is finished.
build/result.exe
./test