create-quantum-app

2.0.0-beta.0 • Public • Published

create-app

sample create-app-cli

目录结构

  1. command: 处理 命令
  2. compile: 编译逻辑,生成最后的文件夹
  3. enums: 枚举值
  4. questions: 问题模块
  5. type: 类型
  6. utils: 工具类
  7. index: 触发逻辑

Feature

question

  1. 判断是否要更新
  2. 如果输入的命令不带参数
    1. input you projectName
    2. choose your packageManage // pnpm yarn npm
    3. choose your infrastructure mode // monorepo polyrepo
    4. choose your framework // vue2 vue3 nuxt2 nuxt3
    5. choose your template
    6. input your git registry //
    7. input your npmMirror token //
  3. 如果输入的命令带参数
    1. input your git registry //
    2. input your npmMirror token //
    3. 判断模版是否存在,不存在跳出

compile

  1. 判断infrastructure mode:
    1. monorepo: monorepo
    2. polyrepo: polyrepo

monorepo

polyrepo

/create-quantum-app/

    Package Sidebar

    Install

    npm i create-quantum-app

    Weekly Downloads

    19

    Version

    2.0.0-beta.0

    License

    ISC

    Unpacked Size

    1.76 MB

    Total Files

    202

    Last publish

    Collaborators

    • evan_wu