bdledger-apis/grpc/scripts/gen-web.sh

11 lines
866 B
Bash
Raw Normal View History

2018-10-31 07:31:46 +00:00
#!/usr/bin/env bash
2020-03-14 13:48:59 +00:00
cd "${0%/*}/.."
2018-10-31 07:31:46 +00:00
dir=gen/web
mkdir -p $dir
2019-09-26 10:06:06 +00:00
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/common.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/error_details.proto
2020-03-07 05:53:11 +00:00
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/node.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/ledger.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/query.proto
2020-03-31 13:19:44 +00:00
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/contract.proto