UNPKG

@chonglou_/quick-app-cli

Version:

前端基础建设模版脚手架,快速搭建PC、Micro(qiankun)、App、微信小程序等项目

58 lines (39 loc) 1.81 kB
# quick-app-cli ``` 前端基础建设模版脚手架,快速搭建PC、App、微信小程序等项目 ``` ## 全局安装 ``` qbnpm install quick-app-cli -g ``` ## 版本升级 ``` quick-app-cli update ``` ## 创建项目 ``` quick-app-cli create projectName(项目名称) ``` ## 指令问题 ``` // 选择需要搭建的平台项目 1.Select the platform project to build? pc / micro / app / wechat // 选择qiankun路由模式 2.Please pick a router mode: Qiankun and Router Hash Mode / Qiankun and Router History Mode // 选择预设模版(Vue2.0基础模版/加载全部配置/自定义) 2.Please pick a preset: Default ([Vue 2] babel, eslint) / Load all configurations / Manually select features // 是否引入vuex,并自动关联本地缓存 4.Whether to introduce Vuex and automatically associate local caches?yes / no // 是否引入axios,并使用自定义网络工具库 5.Whether to introduce Axios and use a custom network tool library?yes / no // 是否引入wx-Axios,并使用自定义网络工具库 6.Whether to introduce wx-Axios and use a custom network tool library?yes / no // 是否引入QB-UI,并使用自定义组件和外层框架模版 7.Whether to introduce QB-UI and use custom components and outer frame templates? yes / no // 是否引入vant,并使用自定义组件和外层框架模版 8.Whether to introduce Vant and use custom components and outer frame templates? yes / no // 是否引入Vant/weapp ,并使用自定义组件和外层框架模版 9.Whether to introduce Vant/weapp and use custom components and outer frame templates? yes / no // 是否在模版项目生成之后,快速使用 cnpm / qbnpm 安装依赖( pc端-qbnpm,移动端-cnpm ) 10.Should we run `cnpm / qbnpm install` for you after the project has been created? ```