0.0.3 • Published 5 years ago

herculex-cli v0.0.3

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

kylin-cli

install

tnpm install @ali/kylin-cli -g

command

init

kylin init <templateName>
  • 如果无输入<templateName>,会自动使用ls命令查询kylin-templates仓库让用户选择
  • 如果不含/符号,会去 gitlab.alipay-inc.com/kylin-templates/<templateName> 中寻找
  • 如果含/符号,会取 gitlab.alipay-inc.com/<templateName> 中寻找
  • 使用ssh连接,仓库权限依赖于当前git配置用户权限

init-page

kylin init-page [templateName] <pageName>
  • templateName 为可选输入
  • pageName 希望初始化的page名称

  • 如果当前cwd下有package.json存在并且存在kylinApp字段,则会自动往kylinApp.pages添加新增的page

init-component

kylin init-component [templateName] <componentName>
  • templateName 为可选输入
  • component 希望初始化的component名称

  • 如果当前cwd下有package.json存在并且存在kylinApp.pages大于1个page,会提示选择需要在哪个page/components目录下创建

ls

kylin ls [group-name]
  • groupName 可选输入,默认kylin-templates

  • 会去groupName对应gitlab组中查询符合条件的kylin模板,(符合条件指:仓库的description字段为[ls]开头,方便过滤)