-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_pb.sh
16 lines (14 loc) · 661 Bytes
/
gen_pb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Use this to regenerate the js files for the protobuf specs
# This file works on Windows...
protoc -I=protobuf/pb \
--plugin="protoc-gen-ts=node_modules\.bin\protoc-gen-ts.cmd" \
--js_out="import_style=commonjs,binary:protobuf/js" \
--ts_out="protobuf/js" \
nest.gateway.proto streambody.proto \
nest.hvac.proto nest.sensor.proto nest.located.proto nest.service.proto nest.structure.proto \
weave.description.proto weave.common.proto
protoc -I=protobuf/pb \
--plugin="protoc-gen-ts=node_modules\.bin\protoc-gen-ts.cmd" \
--js_out="import_style=commonjs,binary:protobuf/js" \
--ts_out="service=grpc-web:protobuf/js" \
nest.gateway.proto