0.0.2 • Published 6 years ago

@mean-expert/protoc-ts v0.0.2

Weekly downloads
190
License
MIT
Repository
github
Last release
6 years ago

protoc-ts

Protoc compiler for TypeScript service interfaces

Installation

$ npm install --save @mean-expert/protoc-ts

Usage

  • Make sure the protoc compiler is installed. Compiler Releases
  • Invoke protoc with:
  • --plugin - define where the plugin needed for ts_out can be found
  • --ts_out - the params and directory to output to
  • generated - output directory name
  • -I - Protos root directory
protoc \
--plugin=protoc-ts=./node_modules/.bin/protoc-ts \
--ts_out=service=true:generated \
-I ./proto \
proto/*.proto