0.1.5 • Published 4 years ago

pitaya-cli v0.1.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

pitaya-cli 项目生成脚手架工具

安装

npm i pitaya-cli -g

使用帮助

pitaya --help

创建工程

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

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

示例

pitaya init -t console -n console-demo

添加组件

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

    • h5-page - h5页面
    • console-page - 后台工程页面
    • taro-page - Taro工程页面
    • h5-com - h5组件
    • taro-com - Taro组件
    • console-modal - 后台Modal对话框组件
    • console-modal-form - 后台Modal表单组件
  • name - 组件名称 使用console-page的时候,支持name 分多级目录,例如 -n /Home/User

示例

pitaya add -t h5-page -n User