grpc-web is added

This commit is contained in:
병준 박 2019-05-12 16:07:52 +09:00
parent d5032ce99a
commit 8d4bf386c2

13
third_party/protoc-gen-web.sh vendored Executable file
View 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