1.1.1 • Published 10 months ago

@jserwang/scripts v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

脚本集合

安装

pnpm add @jserwang/scripts -D

使用

package.json中的scripts添加:

  1. 根据yapi生成接口
jserwang api --token ${REPLACE_TOKEN} --host ${REPLACE_HOST} --path ${REPLACE_TARGET_PATH --type ${REPLACE_TYPE} --prefix ${REPLACE_API_PREFIX} 

如:

jserwang api --token xxxx --host https://xxx --path /test/api --type YAPI --prefix /mobile

注意

  • 当工具发出 发现后端定义接口参数类型异常,接口地址为: 'xxxx'时,请及时找后端询问是否参数定义存在问题,正常来说,请求参数应明确类型。