add generate command

This commit is contained in:
2025-12-08 23:16:04 +09:00
parent ab0f1f9300
commit 2621ba9a17
2 changed files with 8 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ test:
.PHONY: validate .PHONY: validate
validate: fix test validate: fix test
.PHONY: generate
generate:
make -C api generate
.PHONY: cover .PHONY: cover
cover: cover:
go test ./... --coverpkg ./... -coverprofile=c.out go test ./... --coverpkg ./... -coverprofile=c.out

4
api/Makefile Normal file
View File

@@ -0,0 +1,4 @@
.PHONY: generate
generate:
bunx tsp compile .
oapi-codegen -package=api -generate=chi-server,models,strict-server -o gen.go tsp-output/schema/openapi.yaml