Add web platform

This commit is contained in:
Nex
2018-10-31 15:31:46 +08:00
parent e402bf1ef2
commit e94f067e26
5 changed files with 29 additions and 1 deletions

7
gen-web.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
dir=gen/web
mkdir -p $dir
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/common.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/error_details.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/tx_ledger.proto
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/ac_chain.proto