Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,25 @@ Download `nightwatch` from [releases](https://github.com/jakolehm/nightwatch/rel

## Example Usage

```
Single file:
```bash
$ find *.js | nightwatch node app.js
```

Watch everything in the current directory in a control loop:
```bash
COMMAND="bundle exec lolcat.rb"

while true; do
if find . | nightwatch --debug --exit-on-change=255 --dir "${COMMAND}"; then
break # command wants to terminate, exit code was success
fi

echo "Restart ${COMMAND}"
sleep 1
done
```

## Building From Source

```
Expand Down