Closed jmcbee closed 6 years ago
watch-cli doesn't pass anything to the command. If you have any ideas on how that would work, I'd be interested in seeing them.
maybe setting an environment variable as the command gets called.
My pull request solves this problem by making the environment variables FILENAME, EVENT and ABSOLUTE_FILENAME available in the command:
Linux/macOS:
$ watch -p '**/*.js' -c 'jshint $FILENAME'
In Windows:
> watch -p "**/*.js" -c "jshint %FILENAME%"
Closing since this was released in 0.2.3
. Thanks @thomasfl for the PR: #8
You’re welcome Brian. :-)
How do I detect in my command which file has changed?