Skip to content

Commit

Permalink
chore: add typescript client generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadilas committed Mar 29, 2024
1 parent e1f8ad0 commit 6a7a262
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
14 changes: 13 additions & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ plugins:
out: docs
opt:
- format=json
- base=docs/swagger.base.yaml
- base=docs/swagger.base.yaml
# This will invoke protoc-gen-es and write output to src/gen
- plugin: buf.build/bufbuild/es:v1.8.0
out: src/gen
opt:
# Add more plugin options here
- target=ts
# This will invoke protoc-gen-connect-es
- plugin: buf.build/connectrpc/es:v1.4.0
out: src/gen
opt:
# Add more plugin options here
- target=ts
1 change: 1 addition & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: v1
name: buf.build/dot/moar
breaking:
use:
- FILE
Expand Down
6 changes: 6 additions & 0 deletions docs/moarpb/v1/moar.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"description": "moar (pronounce \"more\") is a modular augmentation registry for VueJS and ReactJS.",
"version": "v1.0.0"
},
"servers": [
{
"url": "http://localhost:8080",
"description": "local"
}
],
"paths": {
"/moarpb.v1.ModuleRegistryService/CreateModule": {
"post": {
Expand Down
3 changes: 3 additions & 0 deletions docs/swagger.base.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
openapi: 3.1.0
servers:
- description: local
url: http://localhost:8080
info:
description: "moar (pronounce \"more\") is a modular augmentation registry for VueJS and ReactJS."
title: moar
Expand Down

0 comments on commit 6a7a262

Please sign in to comment.