@xanthous/protoc-ts

0.1.0 • Public • Published

protoc-ts

Protoc compiler for TypeScript service interfaces

Installation

$ npm install --save @xanthous/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

Dependencies (1)

Dev Dependencies (10)

Package Sidebar

Install

npm i @xanthous/protoc-ts

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

99.2 kB

Total Files

50

Last publish

Collaborators

  • harchiko
  • lhr0909
  • necmttn
  • osmanmesutozcan