Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

protoc-gen-grpc-web and protoc-gen-js packed

License

Notifications You must be signed in to change notification settings

UnitedTraders/protoc-gen-grpc-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please do not use this image, use ts-proto and nice-grpc

nrhrhysd616/protoc-gen-grpc-web

Description

nrhrhysd616/protoc-gen-grpc-web is a docker image for grpc-web generator plugin for the Google Protocol Buffers compiler (protoc).
You can compile for grpc-web without installing protoc and grpc-web on the host.
This Docker image uses grpc-web.

Usage

This docker image has two volumes: /out and /protos.
/out is the directory to write the javascript or typescript compiled files to.
/protos is the directory containing your proto files.
By passing these two volumes, the compilation file can be output to any directory.

You can clone this Git project and you could generate JavaScript compiled files for the examples by running the following:

$docker run --rm \
  -v $(pwd)/examples/out:/out \
  -v $(pwd)/examples/protos:/protos \
  nrhrhysd616/protoc-gen-grpc-web

This can be changed by passing the --grpc-web_out parameters to the container.
See GitHub on grpc-web for more information.

For example, to generate commonjs + d.ts files for the examples(Experimental):

$docker run --rm \
  -v $(pwd)/examples/out:/out \
  -v $(pwd)/examples/protos:/protos \
  nrhrhysd616/protoc-gen-grpc-web \
  --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext

Repository

About

protoc-gen-grpc-web and protoc-gen-js packed

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 58.8%
  • Makefile 29.3%
  • Shell 11.9%