1.3.0 • Published 5 years ago

grpc-gen v1.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

gRPC gen

Simple command line for running the protoc compiler via a configuration file

Example .grpc-gen.yml config file

# Root of all your sources
srcs_dir: ./src
# Array of sources relative to srcs_dir
srcs:
  - file.proto
# Output object where the key is the plugin name and the value is
# the directory for the plugins output.
output:
  plugin-name: output-directory

Install

Install globally

npm i -g grpc-gen

OR install locally in your project as a dev dependency and add a build script to your package.json.

npm i -D grpc-gen
// package.json
"scripts": {
  "build": "grpc-gen"
},
"devDependencies": [
  "grpc-gen": "^1.0.0-0"
]
npm run build

Usage

Running grpc-gen in the directory containing your configuration file will build your proto files.

grpc-gen

You can also specify a different configuration file with --config

# Extension can be: .yml .yaml .json .js
grpc-gen --config=custom-config.yml

grpc-gen may also run in watch mode. When your config file or proto files change compilation will re-run.

grpc-gen --watch
1.4.0-0

5 years ago

1.3.0

5 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago