add -w option to watch files for changes and recompile automatically