通过 YAPI 接口 id 快速生成 ts
1.安装全局依赖
npm install -g yo
npm install -g generator-page-tool
2.项目根目录创建.loyalvalleycapitalConfig
配置 YAPI 相关信息
login_url = yourYAPILoginUrl
base_url = yourYAPIBaseUrl
3.执行脚手架指令
yo page-tool
后续步骤按照终端提示操作即可
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.