Add air to devshell for live reloading

This commit is contained in:
Tim Van Baak 2025-01-23 16:58:55 -08:00
parent 13c2c64583
commit d71334cda7
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.direnv
tmp/

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: help serve
help: ## display this help
@awk 'BEGIN{FS = ":.*##"; printf "\033[1m\nUsage\n \033[1;92m make\033[0;36m <target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } ' $(MAKEFILE_LIST)
serve: ## Run "intake serve" with live reload
@air -build.cmd "go build -o scratch/intake" -build.bin scratch/intake -build.args_bin serve -build.exclude_dir scratch

View File

@ -30,6 +30,7 @@
pkgs.go-tools
pkgs.gotools
pkgs.cobra-cli
pkgs.air
];
};
};