mirror of
https://github.com/valitydev/frontend-thrift-codegen.git
synced 2024-11-06 02:15:17 +00:00
__tests__ | ||
.github | ||
bin | ||
tools | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
jest.config.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
renovate.json | ||
tsconfig.json |
Frontend Thrift Codegen CLI
This project allows generation of JS client library, typings and json metadata automatically given a thrift spec.
Usage
thrift-codegen [options]
Options:
-i, --inputs List of thrift file folders for compilation. [array] [required]
-n, --namespaces List of service namespaces which will be included. [array] [required]
Testing
-
Copy thrift spec to
proto
directory. For example damsel. -
Run
npm run codegen -- --i ./proto --n domain_config
-
Codegen client will be available in
dist
directory.