haveno-ts/bin/build_protobuf.sh
premek db509778a8 do not commit generated protobuf code and .proto files
generate the code on npm install and npm test from .proto files from haveno repository
2021-11-21 14:05:53 -05:00

6 lines
329 B
Bash
Executable File

#!/bin/sh
# generate imports for haveno services and types using grpc-web
mkdir -p ./src/protobuf
cd ./src/protobuf || exit 1
protoc -I=../../../haveno/proto/src/main/proto/ ../../../haveno/proto/src/main/proto/*.proto --js_out=import_style=commonjs,binary:./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./ || exit 1