4 ms·
Do you manually invoke "make" every time you edit a file on the server? Nodejs has tools to automate this (and make it fast).
by amelius 11y ago
Do you manually invoke "make" every time you edit a file on the server? Nodejs has tools to automate this (and make it fast).
- rubiquity 11y agoMost UNIXes already have a command line tool for this. It's called entr: http://entrproject.org http://entrproject.org
- bjt 11y agoI have a make task that uses chokidar to watch changes to my JS and CSS. When one changes, chokidar then calls another make task to rebuild things.
- kccqzy 11y agoI'm surprised no one has mentioned editors yet. We are an emacs shop here so we all just use an after-save-hook embedded as a comment in the source to automatically trigger a rebuild, whenever you save the file. No need for a separate tool to watch files.