1.0.2 • Published 2 years ago

ts-proto-build v1.0.2

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

Typescript Protobuf Build Tool

This project implements an NPM CLI wrapper tool for ts-proto to recursively generate TypeScript code for Protobuf definitions using NPM run scripts.

Usage

$ ts-proto-build

Options:
      --version  Show version number                                   [boolean]
  -d, --dir      Source directory                            [string] [required]
  -o, --out      Output directory                            [string] [required]
  -e, --ext      Proto file extensions             [array] [default: [".proto"]]
      --ignore   Ignore files matching JS RegExp           [array] [default: []]
      --interop  Compile with 'esModuleInterop' flag  [boolean] [default: false]
  -h, --help     Show help                                             [boolean]

Requirements

Please make sure that the protoc binary is installed.

Features

  • Pure NodeJS wrapper script (works on all platforms supporting NodeJS and protoc)
  • Searches source directory recursively for proto files
  • Generates TypeScript code from Protobuf definitions

Use case

This script is intended to be used in NPM run scripts.