2.0.20 • Published 3 years ago

czist-create v2.0.20

Weekly downloads
141
License
MIT
Repository
github
Last release
3 years ago

使用cit命令快速创建组件/页面/Model/Services

使用介绍

    1. npm install -g cit 全局安装cit命令
    1. cit addComponent <CpnName> 添加组件(默认会在src/components文件夹下添加), 配合命令 -nf -d 使用
    1. cit addPage <PageName> 添加page(会在src/pages下新建页面, 并且在src/models下新建model文件, 在src/services下新建services文件)
    1. cit addGroupPage <PageName> 添加page(会在src/pages下新建页面, 并且在src/models下新建model文件, 在src/services下新建services文件)
    1. cit addModel <ModelName> 添加Model层
    1. cit addServices <ServicesName> 添加services层
    1. 使用cit --help 查看帮助文档 包含command命令以及所有option命令

命令介绍

  • -d 写入文件的位置 例如添加一个组件 cit addComponent Slider -d src/pages/Warehouse/Component
  • -nf 写入文件的时候时候需要外层城包装一个文件夹 例如 cit adComponent <PageName> -nf 创建文件的时候会在外层包装一个文件夹 里层使用index.jsx文件
  • 注意: -d -nf命令只在addComponent的时候有用
2.0.20

3 years ago

1.0.5

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago