4 ms·
See also: sane - for node watchexec - rust based, static binary
by awestroke 4y ago
See also:
sane - for node
watchexec - rust based, static binary
- christophilus 4y agoReflex for go: https://github.com/cespare/reflex https://github.com/cespare/reflex
- kevincox 4y agoFor CLI usage I found that the best option was instead of watching my source directory just to watch a magic file. Then I configured my editor to touch that file when saving. This has a few benefits: 1. No need to worry about which files to watch or ignoring build outputs. 2. Works with every project with no setup. 3. Easy to trigger a re-run without actually changing a file. 4. Always runs after all files are saved instead of starting after the first file is saved and racing the rest. 5. Infinitely scalable.
- matijs 4y agoOut of curiosity, what editor do you use and how do you make sure 4. happens when for example using ‘save all’?
- kevincox 4y agoI'm currently using neovim so it is pretty trivial to add save hooks. Although the approach I am currently using is just a custom shortcut that saves all files and touches the file. This way only explicit saves by me trigger the rerun. My current setup is documented here but it's easy to tweak to your prefered workflow. https://kevincox.ca/2022/06/14/small-tools/#w https://kevincox.ca/2022/06/14/small-tools/#w