Skip to content

Commit

Permalink
chore: add protoc-gen-es, protoc-gen-go
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Nov 20, 2024
1 parent 31f068b commit 4e8b6d0
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 280 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
curl -sSL https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.23.0/protoc-gen-openapiv2-v2.23.0-linux-x86_64 -o protoc-gen-openapiv2
chmod +x protoc-gen-openapiv2
mv protoc-gen-openapiv2 /usr/local/bin
- name: Setup protoc-gen-go
run: |
curl -sSL https://github.com/protocolbuffers/protobuf-go/releases/download/v1.35.2/protoc-gen-go.v1.35.2.linux.amd64.tar.gz
tar -xvf protoc-gen-go.v1.35.2.linux.amd64.tar.gz
chmod +x protoc-gen-go
mv protoc-gen-go /usr/local/bin
- name: Build
run: pnpm build
- name: Upload artifact
Expand Down
6 changes: 5 additions & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: v2
plugins:
- local: protoc-gen-openapiv2
out: gen
out: gen/openapi
- local: protoc-gen-es
out: gen/es
- local: protoc-gen-go
out: gen/go
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"scripts": {
"update:proto": "buf dep update",
"build:proto": "buf generate",
"build:swagger": "swagger-cli bundle -o docs/swagger.json gen/proto/*.json",
"build:swagger": "swagger-cli bundle -o docs/swagger.json gen/openapi/proto/*.json",
"build": "npm run build:proto && npm run build:swagger",
"serve": "serve -s docs"
},
"devDependencies": {
"@bufbuild/buf": "^1.47.2",
"@bufbuild/protoc-gen-es": "^2.2.2",
"serve": "^14.2.4",
"swagger-cli": "^4.0.4"
}
Expand Down
Loading

0 comments on commit 4e8b6d0

Please sign in to comment.