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
npm install --save remotivelabs-grpc-web-stubs
or
yarn add remotivelabs-grpc-web-stubs
import {SystemServiceClient} from 'remotivelabs-grpc-web-stubs'
const client = new SystemServiceClient(brokerUrl)
This image is on dockerhub so you do not have to build it
docker build -t remotivelabs/grpc-web-generator .
From this directory run the following commands and update src/index.ts
to explicitly export types.
sh ./generate-ts.sh
- 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
.