saasitone/Makefile

25 lines
389 B
Makefile

# Run the application
.PHONY: run
run: sqlc templ
clear
go run cmd/web/main.go
# Run all tests
.PHONY: test
test:
go test -count=1 -p 1 ./...
.PHONY: sqlc
sqlc:
rm -f pkg/models/sqlc/*
sqlc generate
.PHONY: templ
templ:
templ generate
# Check for direct dependency updates
.PHONY: check-updates
check-updates:
go list -u -m -f '{{if not .Indirect}}{{.}}{{end}}' all | grep "\["