26 lines
599 B
Makefile
26 lines
599 B
Makefile
.PHONY: jet proto build vet test tidy
|
|
|
|
# jet regenerates the go-jet query packages under internal/postgres/jet by
|
|
# spinning up a transient Postgres container, applying the embedded
|
|
# migrations, and running the generator against the `backend` schema.
|
|
jet:
|
|
go run ./cmd/jetgen
|
|
|
|
# proto regenerates the gRPC bindings under proto/ from the .proto files
|
|
# in the same directory using the buf toolchain (`buf generate`). The
|
|
# generated *.pb.go and *_grpc.pb.go files are committed to the repo.
|
|
proto:
|
|
buf generate
|
|
|
|
build:
|
|
go build ./...
|
|
|
|
vet:
|
|
go vet ./...
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
tidy:
|
|
go mod tidy
|