zv-grpc-web-build

1.1.0 • Public • Published

ZV gRPC Web Build

This project implements an NPM CLI wrapper tool for protoc. It can be used to generate TypeScript gRPC Web clients using NPM run scripts.

Requirements

This package requires both the protoc binary and the protoc-gen-grpc-web plugin to be installed.

See:

Usage

$ zv-grpc-web-build

Options:
  --version     Show version number                                    [boolean]
  -d, --dir     Source directory                             [string] [required]
  -o, --out     Output directory                             [string] [required]
  -e, --ext     Proto file extensions              [array] [default: [".proto"]]
  -b, --binary  Binary protocol ("grpcweb" instead of "grpcwebtext")
                                                      [boolean] [default: false]
  -h, --help    Show help                                              [boolean]

Features

  • Pure NodeJS wrapper script (works on all platforms supporting NodeJS and protoc)
  • Searches source directory recursively for proto files
  • Generates TypeScript gRPC Web clients using protoc
  • Appends /* eslint-disable */ to the beginning of JS files

Use case

This script is intended to be used in NPM run scripts.

Package Sidebar

Install

npm i zv-grpc-web-build

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

18.2 kB

Total Files

8

Last publish

Collaborators

  • zukunft-verstehen