Sign inSign up

citilink/prototool

By citilink

•Updated almost 4 years ago

Image
0

3.3K

citilink/prototool repository overview

⁠prototool

Extended uber/prototool⁠ docker image with support for generating .d.ts (TypeScript) for grpc-node.

⁠Configuration

Example prototool.yaml wich generates both NodeJS and browser code:

protoc:
  version: 3.11.0
lint:
  group: uber2
generate:
  plugins:
    # Node
    - name: js
      flags: import_style=commonjs,binary
      output: ../gen/node
    - name: ts
      flags: service=grpc-node
      output: ../gen/node
      path: protoc-gen-ts
    - name: grpc
      output: ../gen/node
      path: grpc_node_plugin
    # Browser
    - name: js
      flags: import_style=commonjs
      output: ../gen/web
    - name: grpc-web
      flags: import_style=commonjs+dts,mode=grpcwebtext
      output: ../gen/web
      path: protoc-gen-grpc-web

⁠How to use

docker run --rm -v "$(pwd):/work" citilink/prototool:latest prototool generate

⁠Documentation

For more information please refer to the original documentation⁠.

Tag summary

Content type

Image

Digest

sha256:3001dffd4…

Size

92.4 MB

Last updated

almost 4 years ago

docker pull citilink/prototool