Thursday, October 24, 2013

What I didn't know about nodemon

So I was looking for inotifywait alternatives for mac, and found that what I was already using for node.js can be used for any extension.

I want to watch a directory of .tex files for changes and compile the Latex document when changed.

nodemon -x "pdflatex document" -w ./ -e .tex

more generally

nodemon -x "<command>" -w <dirtowatch> -e .<extension to watch>

nodemon -h