cubi-cli
个人的前端工程化的操作工具集
目标功能
- 快速构建项目, vue, react, severless 等类型的项目
- 快速构建项目中的子代码块, 如vue-page,vue-router,vue-store等文件
- 开发工作流, 如自动化构建, 本地开发服务器, 打包输出
- 部署工作流, 如自动上传静态资源至阿里云oss等
安装
npm i cubi-cli -g
使用
cubi
_ _ _ _
___ _ _ | |__ (_) ___ | | (_)
/ __| | | | | | '_ \ | | _____ / __| | | | |
| (__ | |_| | | |_) | | | |_____| | (__ | | | |
\___| \__,_| |_.__/ |_| \___| |_| |_|
Usage: cubi [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
create <name> 创建一个新的项目
grunt <type> grunt工作流集成: dev | build
gulp <type> gulp工作流集成: dev | build
help [command] display help for command
生成项目
cubi create demo
E:\cubi-demo>cubi create demo
? 确认项目名: demo
? 选择项目类型: demo
√
安装完成
开始
cd demo npm i npm i cubi-cli --save-dev
grunt工作流
开发
cubi grunt dev
构建
cubi grunt build
gulp工作流
开发
cubi gulp dev
构建
cubi gulp build