Each time a file changes, copy files and run additional commands. nodemon -x 'cp src dest && sh restart-server' -w src