Skip to content

Commit

Permalink
Tools for building ecosyste.ms clients in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 26, 2023
1 parent 74b0465 commit 2a358e4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ cover:
@go test ./... -coverprofile=/tmp/cover.out
@go tool cover -html=/tmp/cover.out

.PHONY: build test acceptance lint cover
specs:
@curl --silent https://packages.ecosyste.ms/docs/api/v1/openapi.yaml -o specs/packages.yaml
@curl --silent https://repos.ecosyste.ms/docs/api/v1/openapi.yaml -o specs/repos.yaml

clients: specs
@oapi-codegen -generate types,client -package packages specs/packages.yaml > ecosystems/packages/packages.go
@oapi-codegen -generate types,client -package repos specs/repos.yaml > ecosystems/repos/repos.go


.PHONY: build test acceptance lint cover specs clients

0 comments on commit 2a358e4

Please sign in to comment.