Skip to content

Latest commit

 

History

History

grpc-web-stubs

RemotiveLabs WEB-GRPC Stubs

npm version

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

  1. Commit changes.
  2. Generate stubs sh ./generate-ts.sh.
  3. Update version with npm version x.y.z and commit it with release: Prepare a release for version x.y.z.
  4. Publish with npm publish.