Skip to content

agirorn/yardman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1668fd2 · Nov 7, 2023

History

57 Commits
Nov 7, 2023
Apr 21, 2017
Sep 4, 2023
Jan 18, 2021
Jan 18, 2021
May 14, 2019
Apr 21, 2017
Sep 4, 2023
May 15, 2019
Sep 4, 2023
Nov 7, 2023
Sep 4, 2023
Sep 4, 2023

Repository files navigation

npm version Build Status

yardman

The one that maintains the development yard. Watching files and running commands.

yardman

Installation

# Using Yarn
yarn add yardman

# Using npm
npm install yardman

Usage

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}}'

Configuration

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