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

19 lines
1.0 KiB
Batchfile
Raw Normal View History

2018-10-31 07:31:46 +00:00
@echo off
2020-03-14 13:48:59 +00:00
cd /d "%~dp0.."
2018-10-31 07:31:46 +00:00
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
2020-03-07 05:53:11 +00:00
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/node.proto
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/ledger.proto
%exe% -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
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/contract.proto
2018-10-31 07:31:46 +00:00
echo all done