2018-10-31 07:31:46 +00:00
|
|
|
@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%
|
2019-09-26 10:06:06 +00:00
|
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/common.proto
|
|
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/error_details.proto
|
|
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/tx_ledger.proto
|
2019-11-25 13:23:49 +00:00
|
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/query_service.proto
|
2018-10-31 07:31:46 +00:00
|
|
|
|
|
|
|
echo all done
|