fix(ci): make command

I hate github actions soooo much
This commit is contained in:
Gustavo "Guz" L. de Mello
2024-05-23 14:42:20 -03:00
parent a0ce6903e8
commit 703ba09ed9

View File

@@ -37,8 +37,13 @@ bin/www: main.go templ
bin/vercel: cmd/vercel/main.go templ
go build -o ./bin/vercel ./cmd/vercel/main.go
templ:
templ generate
# For some reason "templ generate" does not detect the files, so this is a
# workaround.
TEMPL_FILES=$(patsubst %.templ, %_templ.go, $(wildcard **/*.templ))
templ: $(TEMPL_FILES)
@echo Generating templ files
%_templ.go: %.templ
templ generate -f $^ > /dev/null
clean:
if [[ -d "dist" ]]; then rm -r ./dist; fi