mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 19:51:17 +00:00
feat: base frontend
feat: base openapi v2 to openapi v3 generation
This commit is contained in:
37
Makefile
37
Makefile
@@ -1,13 +1,38 @@
|
||||
install-tools:
|
||||
go install github.com/bufbuild/buf/cmd/buf@v1.27.2
|
||||
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.0
|
||||
#
|
||||
# Dev Tools
|
||||
#
|
||||
|
||||
generate-protobufs:
|
||||
.PHONY: install-tools
|
||||
install-tools:
|
||||
go install github.com/bufbuild/buf/cmd/buf@v1.27.2 && \
|
||||
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.0 && \
|
||||
npm install
|
||||
|
||||
#
|
||||
# Code Gen
|
||||
#
|
||||
|
||||
.PHONY: gen-protobufs
|
||||
gen-protobufs:
|
||||
buf generate
|
||||
|
||||
format:
|
||||
buf format -w
|
||||
.PHONY: gen-openapi
|
||||
gen-openapi: gen-protobufs
|
||||
npx openapi-generator-cli generate -g openapi-yaml -i schema/openapi/services.swagger.yaml -o schema/openapi -p outputFile=openapi.yaml
|
||||
|
||||
#
|
||||
# Linting / Formatting
|
||||
#
|
||||
|
||||
.PHONY: format-go
|
||||
format-go:
|
||||
buf format -w && \
|
||||
gofmt -w -s .
|
||||
|
||||
#
|
||||
# Deployment
|
||||
#
|
||||
|
||||
.PHONY: deploy-docker
|
||||
deploy-docker:
|
||||
docker compose -f deploy/docker/compose.yaml -f deploy/docker/compose.override.yaml up --build
|
||||
Reference in New Issue
Block a user