Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victor-enogwe/protoc-ts
grpc protoc-gen
https://github.com/victor-enogwe/protoc-ts
Last synced: about 1 month ago
JSON representation
grpc protoc-gen
- Host: GitHub
- URL: https://github.com/victor-enogwe/protoc-ts
- Owner: victor-enogwe
- License: mit
- Created: 2020-06-15T04:59:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:37:53.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T21:42:10.332Z (7 months ago)
- Language: TypeScript
- Size: 265 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# protoc-ts
> Protoc compiler for TypeScript service interfaces## Installation
````sh
$ npm install --save @mean-expert/protoc-ts
````## Usage
* Make sure the protoc compiler is installed. [Compiler Releases](https://github.com/google/protobuf/releases/tag/v3.5.0)
* 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```sh
protoc \
--plugin=protoc-ts=./node_modules/.bin/protoc-ts \
--ts_out=service=true:generated \
-I ./proto \
proto/*.proto
```