ringcentral-code-generator-typescript
所属分类:自动编程
开发工具:TypeScript
文件大小:50KB
下载次数:0
上传日期:2023-05-17 22:04:46
上 传 者:
sh-1993
说明: 环中心代码生成器类型脚本,,
(ringcentral-code-generator-typescript,,)
文件列表:
.ackrc (19, 2023-09-13)
.env.sample (152, 2023-09-13)
.eslintignore (7, 2023-09-13)
.eslintrc.json (39, 2023-09-13)
.prettierrc.js (58, 2023-09-13)
.vscode (0, 2023-09-13)
.vscode\settings.json (191, 2023-09-13)
package.json (674, 2023-09-13)
src (0, 2023-09-13)
src\definitions.ts (2727, 2023-09-13)
src\index.ts (486, 2023-09-13)
src\paths.ts (8426, 2023-09-13)
src\samples.ts (4165, 2023-09-13)
src\test.ts (99, 2023-09-13)
src\utils.ts (483, 2023-09-13)
tsconfig.json (176, 2023-09-13)
yarn.lock (96404, 2023-09-13)
# RingCentral Code Generator for TypeScript
This is the code generator for [RingCentral Extensible](https://github.com/ringcentral/ringcentral-extensible) [core module](https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/core). More specifically, the [definitions](https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/core/definitions) and the [paths](https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/core/paths).
We provide this tool because by default the RingCentral Extensible core module only supports public API.
There are partners and internal teams which need access to internal/beta API. So they can use this tool to generate code themselves.
## Install
```
yarn add ringcentral-code-generator
```
## Usage
```
import generate from 'ringcentral-code-generator'
generate('/path/to/spec.yml', '/path/to/output/folder');
```
## Test
Rename `.env.sample` to `.env`. Edit `.env` to specify the path to spec and the output folder.
```
yarn test
```
近期下载者:
相关文件:
收藏者: