Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 731 Bytes

.verb.md

File metadata and controls

50 lines (33 loc) · 731 Bytes

{%= name %} {%= badge('fury') %}

{%= description %}

Install globally

Install globally with npm

npm i -g watch-cli

Usage

watch -p "**/*.js" -c "npm test"

Exported environment variables

Environment variables available from the command string:

FILENAME           Relative filename.
ABSOLUTE_FILENAME  Absolute filename.
EVENT              Event type. Is either 'changed', 'deleted' or 'added'.

Use it like this in Linux/macOS:

$ watch -p '**/*.js' -c 'jshint $FILENAME'

In Windows:

> watch -p "**/*.js" -c "jshint %FILENAME%"

Author

{%= include("author") %}

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}