Watch for file changes and run a command:
nodemon --watch <folder> --exec <command> --ext <extension>
Example
On theapp
folder, watch for changes on .rb
files, and run ./bar.sh
when that happens:
nodemon --watch "app" --exec "./bar.sh" --ext ".rb"