0.0.3 • Published 5 years ago

@ksfe/cli v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

安装

npm i @ksfe/cli -g

使用帮助

ksfe --help

创建工程

ksfe init -t <type> -n <name>
  • type - 工程类型,支持以下几种类型

    • console - 后台工程,集成Ant Design
    • h5 - h5移动端工程
    • taro - Taro小程序工程
  • name - 工程名称

示例

ksfe init -t console -n console-demo

添加组件

ksfe add -t <type> -n <name>
  • type - 组件类型,支持以下几种类型

    • empty-page - 空页面
    • console-page - 后台工程页面
    • taro-com - Taro工程页面
    • empty-com - 空组件
    • taro-com - Taro组件
    • console-modal - 后台Modal对话框组件
    • console-modal-form - 后台Modal表单组件
  • name - 组件名称

示例

ksfe add -t empty-page -n User