desktop/packages/management-interface/README.md
This package provides node (JS/TS) gRPC bindings generated from our .proto files.The bindings
consists of two parts:
.proto files.exports in package.json which exposes the autogenerated bindings.The autogenerated bindings must be regenerated when the source .proto files are updated.
The node gRPC bindings are generated within a Linux container. The container first builds the
grpc-tools binaries from source from the grpc-node repository. The grpc-tools binaries are
then used to generate the node gRPC bindings.
Note: These steps should be run on the build server. See: building/README.md
cd desktop/packages/management-interface
bash building/build-and-publish-container-image.sh
When the new image has been pushed to the container repository we must ensure we use the new version.
Update the IMAGE_HASH variable used in the shell script to use the new tag:
desktop/packages/management-interface/scripts/container-run-generate-bindings.sh
Run the build script to generate the bindings.
npm run -w management-interface build