-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b09307b
commit 61f6ff1
Showing
23 changed files
with
5,793 additions
and
5,685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# typescript | ||
npm install @protobuf-ts/plugin | ||
npx protoc --ts_out src/proto \ | ||
mkdir -p dist/proto/typescript | ||
npx protoc --ts_out dist/proto/typescript \ | ||
--experimental_allow_proto3_optional \ | ||
--ts_opt long_type_number,server_generic \ | ||
--proto_path proto proto/*.proto | ||
mkdir -p src/proto | ||
cp -Rf dist/proto/typescript/* src/proto/ | ||
|
||
|
||
# python | ||
python3 -m venv tmp/protobuild-venv | ||
. tmp/protobuild-venv/bin/activate | ||
pip install grpcio-tools | ||
mkdir -p dist/proto/python | ||
python -m grpc_tools.protoc -Iproto --python_out=dist/proto/python --pyi_out=dist/proto/python --grpc_python_out=dist/proto/python proto/*.proto |
Oops, something went wrong.