2021-12-31 07:09:52 -08:00
|
|
|
# Run the application
|
2021-12-11 11:00:10 -08:00
|
|
|
.PHONY: run
|
2024-07-13 21:20:37 -07:00
|
|
|
run: sqlc templ
|
2021-12-11 13:06:28 -08:00
|
|
|
clear
|
2022-11-02 16:23:26 -07:00
|
|
|
go run cmd/web/main.go
|
2021-12-17 16:58:44 -08:00
|
|
|
|
2021-12-31 07:09:52 -08:00
|
|
|
# Run all tests
|
2021-12-17 16:58:44 -08:00
|
|
|
.PHONY: test
|
2021-12-17 18:14:43 -08:00
|
|
|
test:
|
2022-05-17 05:45:18 -07:00
|
|
|
go test -count=1 -p 1 ./...
|
2022-02-08 05:58:22 -08:00
|
|
|
|
2024-07-11 21:09:15 -07:00
|
|
|
.PHONY: sqlc
|
|
|
|
sqlc:
|
|
|
|
rm -f pkg/models/sqlc/*
|
|
|
|
sqlc generate
|
|
|
|
|
2024-07-13 21:20:37 -07:00
|
|
|
.PHONY: templ
|
|
|
|
templ:
|
|
|
|
templ generate
|
|
|
|
|
2022-02-10 05:21:07 -08:00
|
|
|
# Check for direct dependency updates
|
|
|
|
.PHONY: check-updates
|
|
|
|
check-updates:
|
2022-05-17 05:45:18 -07:00
|
|
|
go list -u -m -f '{{if not .Indirect}}{{.}}{{end}}' all | grep "\["
|