Add web platform
This commit is contained in:
15
gen-web.bat
Normal file
15
gen-web.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
set dir=.\gen\web
|
||||
set exe=protoc
|
||||
set gen=protoc-protoc-gen-grpc-web
|
||||
|
||||
where /q %exe% || echo missing %exe% && exit /B
|
||||
where /q %gen% || echo missing %gen% && exit /B
|
||||
|
||||
if not exist %dir% mkdir %dir%
|
||||
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/common.proto
|
||||
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/error_details.proto
|
||||
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/tx_ledger.proto
|
||||
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/ac_chain.proto
|
||||
|
||||
echo all done
|
||||
Reference in New Issue
Block a user