haveno-ts/scripts/build_protobuf.sh
woodser 7ee0d34f1a convert to typescript library
remove create-react-app
2022-05-05 22:25:08 -04:00

7 lines
330 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