Closed joncrangle closed 7 months ago
Never used air before. But sounds nice.
You should mention it in the dev section of the README
https://github.com/everywall/ladder/blob/main/README.md?plain=1#L187
Oh this is great. I didn't know I needed this. Thanks!
This is a very small PR to add a cosmtrek/air configuration file to the project. It's pretty much the default air configuration with a couple minor tweaks.
Air is a pretty great CLI that provides live reload functionality for dev purposes. It's optional to use air for dev, but it certainly makes things more convenient not needing to stop and restart the server when working on code changes.
If you have Air installed, you can simply run
air
from the project root dir (or the path alias to air if you haven't added it to your.bashrc
or.zshrc
) and it will build the project to thetmp
dir and watch for saved changes that would cause a live reload. It cleans up thetmp
folder automatically when you stop the dev server.