Skip to content

Commit

Permalink
Setup dataplane grpc client/mock server (#1921)
Browse files Browse the repository at this point in the history
* add buf & connectrpc, codegen client

* lint

* prettier ignore

* fix prettier ignore

* tidy & add tests
  • Loading branch information
dholms authored Dec 7, 2023
1 parent 832e42b commit 52580fe
Show file tree
Hide file tree
Showing 11 changed files with 6,302 additions and 13 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pnpm-lock.yaml
.pnpm*
.changeset
*.d.ts
packages/bsky/src/data-plane/gen
8 changes: 8 additions & 0 deletions packages/bsky/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: v1
plugins:
- plugin: es
opt: target=ts
out: src/data-plane/gen
- plugin: connect-es
opt: target=ts
out: src/data-plane/gen
15 changes: 12 additions & 3 deletions packages/bsky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,22 @@
"test": "../dev-infra/with-test-redis-and-db.sh jest",
"test:log": "tail -50 test.log | pino-pretty",
"test:updateSnapshot": "jest --updateSnapshot",
"migration:create": "ts-node ./bin/migration-create.ts"
"migration:create": "ts-node ./bin/migration-create.ts",
"buf:gen": "buf generate proto"
},
"dependencies": {
"@atproto/api": "workspace:^",
"@atproto/common": "workspace:^",
"@atproto/crypto": "workspace:^",
"@atproto/syntax": "workspace:^",
"@atproto/identity": "workspace:^",
"@atproto/lexicon": "workspace:^",
"@atproto/repo": "workspace:^",
"@atproto/syntax": "workspace:^",
"@atproto/xrpc-server": "workspace:^",
"@bufbuild/protobuf": "^1.5.0",
"@connectrpc/connect": "^1.1.4",
"@connectrpc/connect-express": "^1.1.4",
"@connectrpc/connect-node": "^1.1.4",
"@did-plc/lib": "^0.0.1",
"@isaacs/ttlcache": "^1.4.1",
"compression": "^1.7.4",
Expand All @@ -65,12 +70,16 @@
"@atproto/lex-cli": "workspace:^",
"@atproto/pds": "workspace:^",
"@atproto/xrpc": "workspace:^",
"@bufbuild/buf": "^1.28.1",
"@bufbuild/protoc-gen-es": "^1.5.0",
"@connectrpc/protoc-gen-connect-es": "^1.1.4",
"@did-plc/server": "^0.0.1",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/express-serve-static-core": "^4.17.36",
"@types/pg": "^8.6.6",
"@types/qs": "^6.9.7",
"axios": "^0.27.2"
"axios": "^0.27.2",
"http2-express-bridge": "^1.0.7"
}
}
Loading

0 comments on commit 52580fe

Please sign in to comment.