Go to file
2023-03-28 20:55:57 +07:00
__tests__ Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
.github Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
.idea IMP-23: Create TS defs (#10) 2022-03-05 18:55:18 +03:00
bin Thrift client 2.0 (#23) 2022-12-14 14:04:36 +03:00
tools Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
.gitignore Thrift client 2.0 (#23) 2022-12-14 14:04:36 +03:00
.prettierignore Thrift client 2.0 (#23) 2022-12-14 14:04:36 +03:00
.prettierrc feat: IMP-23: Init (#1) 2022-03-02 16:51:02 +03:00
jest.config.js Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
LICENSE init 2022-03-02 15:53:24 +03:00
package-lock.json Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
package.json Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00
README.md Fix import name collision. Remove extra options (#29) 2022-12-20 17:56:36 +03:00
renovate.json IMP-23: Create TS defs (#10) 2022-03-05 18:55:18 +03:00
tsconfig.json Test config. Fix i64 out of range (#36) 2023-03-28 20:55:57 +07:00

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.