update all the makefiles (#111)

* update all the makefiles

* add back openapi

* update cache package

* fix cache

* update go mod
This commit is contained in:
Asim Aslam
2021-05-19 10:36:07 +01:00
committed by GitHub
parent a94f032acd
commit f3ca93b789
17 changed files with 160 additions and 71 deletions

View File

@@ -5,6 +5,7 @@ init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
go get github.com/micro/micro/v3/cmd/protoc-gen-openapi
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/url.proto
@@ -13,10 +14,9 @@ proto:
build:
go build -o url *.go
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/url.proto
@redoc-cli bundle api-url.json
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/url.proto
.PHONY: test
test: