CLI protoc wrapper for generating TypeScript gRPC Web clients. Current stable version: 1.1.0. This tool recursively scans a source directory for .proto files and invokes protoc with the gRPC Web plugin to produce TypeScript and JavaScript client stubs. It simplifies integration into NPM build scripts, supports both grpcweb and grpcwebtext wire formats, and automatically adds /* eslint-disable */ annotations to generated JS files. Requires manual installation of protoc and protoc-gen-grpc-web binaries.
npm install zv-grpc-web-buildNo compatibility data collected yet for this library.
Run the CLI tool to generate gRPC Web TypeScript clients from .proto files in ./protos, outputting to ./generated with text format (grpcwebtext).
Install protoc from https://grpc.io/docs/protoc-installation/ and protoc-gen-grpc-web from https://github.com/grpc/grpc-web#code-generator-plugin.
Ensure all proto imports are relative to a common root directory and pass that directory via -d.
Add generated directories to .eslintignore or configure eslint to handle generated files.
Install protoc compiler and ensure it's accessible via PATH.
Install protoc-gen-grpc-web from https://github.com/grpc/grpc-web#code-generator-plugin.
Verify the source directory exists and contains .proto files.