2.1.0 • Published 1 year ago

mao-cli v2.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

node

license

快速搭建项目

快速下载项目,选择模板,可克隆后,根据公司需要,二次开发,定制,参考,学习。

快速使用

  1. 安装

    npm i -g mao-cli
  2. 使用

    mao create projectName
  3. 选择项目模板

    1. 选择指定几个项目模板或自定义

    2. 自定义输入 git 仓库地址, 规则如下

    3. GitHub: github:owner/name 或者 owner/name

    4. GitLab: gitlab:owner/name

    5. BitBucket: bitbucket:owner/name

    6. GitLab自定义源: gitlab:custom.com:owner/name

    7. Direct直接访问: direct:url

    8. 直接访问: https://mygitlab.com:owner/name#my-branch

  4. 注意点

    不加分支,则为默认分支

    指定分支,如:owner/name#main

    格式参考:https://gitlab.com/flippidippi/download-git-repo

命令

  1. 快速配置 eslint 规则 该规则使用了,typescript+eslint+prettier, 做了以下2个操作

    1. 生成 .eslintrc.cjs 配置
    2. 安装依赖到 package.json 中
      mao g eslintrc # mao generate eslintrc
  2. 快速生成项目

    mao create projectName # 下一步选择模块
    # ts 项目    typescript  学习ts使用
    # 中后台项目  console 集成 ant.design之类的UI库
    # h5 项目    html5 
    # app 项目   app

依赖

  1. inquirer 使用 ^8
    npm i inquirer@8
  2. ora 使用 ^5
    npm i ora@5
  3. chalk 使用 ^4
    npm i chalk@4

参考

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.6

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago