1.2.1 • Published 4 years ago

janya-cli v1.2.1

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

个人的前端脚手架

安装

yarn global add janya-cli
# or
npm install janya -g

使用

  1. 直接使用, 会拉取我的帐号下的 janya-tpl-fe-base 仓库代码

    janya init
    # or
    janya i
  2. 设置仓库来源, 你可以把来源设成你自己git名字, 然后拉取自己的仓库

    janya config set registry xxx
    
    e.g. janya config set registry JanYLee
  3. 查看仓库来源

    janya config get
    
       registry=xxx
       type=users
  4. 拉取这个源的仓库

    janya init <templateName> <projectName>
    
    e.g. janya init employ-app myapp
  5. 移除仓库来源

    janya remove registry xxx