2020-03-14 13:48:59 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
cd "${0%/*}/.."
|
|
|
|
dir=gen/nodejs
|
2020-03-15 02:47:53 +00:00
|
|
|
pluginPath=$(which grpc_tools_node_protoc_plugin)
|
2020-03-14 13:48:59 +00:00
|
|
|
mkdir -p $dir
|
2020-03-15 02:47:53 +00:00
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/common.proto
|
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/error_details.proto
|
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/node.proto
|
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/ledger.proto
|
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/query.proto
|
2020-03-31 13:19:44 +00:00
|
|
|
protoc -I . --js_out=import_style=commonjs,binary:$dir --grpc_out=$dir --plugin=protoc-gen-grpc="$pluginPath" bdledger/api/contract.proto
|