remotivelabs-grpc-web-stubs
v0.0.10
Published
Javascript/Typescript grpc-web stubs for interacting with RemotiveBroker
Downloads
159
Keywords
Readme
RemotiveLabs WEB-GRPC Stubs
These are generated grpc-web stubs to be used in a browser context, not intended to bu used with nodejs, read more here https://github.com/grpc/grpc-web
Usage
Installation
npm install --save remotivelabs-grpc-web-stubs
or
yarn add remotivelabs-grpc-web-stubs
Import
import {SystemServiceClient} from 'remotivelabs-grpc-web-stubs'
const client = new SystemServiceClient(brokerUrl)
Development
Build grpc-web-generator
This image is on dockerhub so you do not have to build it
docker build -t remotivelabs/grpc-web-generator .
Generate stubs
From this directory run the following commands and update src/index.ts
to explicitly export types.
sh ./generate-ts.sh
Release Instructions
- Commit changes.
- Generate stubs
sh ./generate-ts.sh
. - Update version with
npm version x.y.z
and commit it withrelease: Prepare a release for version x.y.z
. - Publish with
npm publish
.