grpc-web is added
This commit is contained in:
parent
d5032ce99a
commit
8d4bf386c2
13
third_party/protoc-gen-web.sh
vendored
Executable file
13
third_party/protoc-gen-web.sh
vendored
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
PROTO_DIR="./api/proto/v1"
|
||||||
|
PKG_DIR="./pkg/api/v1"
|
||||||
|
|
||||||
|
protoc \
|
||||||
|
--proto_path=${PROTO_DIR} \
|
||||||
|
--proto_path=third_party \
|
||||||
|
--js_out=import_style=commonjs:${PKG_DIR} \
|
||||||
|
--grpc-web_out=import_style=typescript,mode=grpcwebtext:${PKG_DIR} \
|
||||||
|
-I ${PROTO_DIR} ${PROTO_DIR}/**/*.proto
|
Loading…
Reference in New Issue
Block a user