@tuia/mock2yapi

0.0.4 • Public • Published

tuia-yapi-mock-import

推啊 YApi 配套工具,同步本地 mock 数据内容到 YApi 平台。

Installation

  • 全局
npm install @tuia/mock2yapi -g

mock2yapi -d
  • 项目中
npm install @tuia/mock2yapi

npx mock2yapi -d

Options

  1. -i or --input : mock 数据所在的路径

  2. -t or --token : 项目令牌

  3. -p or --project_id : 项目 id

  4. -d or --debug : 输出 debug 信息

注意

  • 只支持 mock 数据为 json 文件,其他格式的数据请自行转化
  • 优先级以远端 yapi 为最高,本地为补充,冲突时不做自动更新,如有需要,请手动设置
  • 建议只作为项目初始化工具,一旦 mock 项目投入使用,请避免再次使用本工具

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @tuia/mock2yapi

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

19.5 kB

Total Files

17

Last publish

Collaborators

  • any-u
  • dinglh
  • candy_dd
  • wintersun97
  • tump
  • inuanfeng
  • zhoucheng
  • zhangmin173
  • aiduck
  • chao.zhou
  • babalk
  • leitingting
  • nbseven
  • linhao-vue
  • liusandy