this is a awesome cli!
$ npm install --save starfe-cli
const starMyCli = require("starfe-cli");
starMyCli("Rainbow");
- 初始化 vue 项目
starfe-cli create demo
- 创建一个组件
starfe-cli addcpn componentTest # 创建组件
starfe-cli addcpn NavBar `-d ./src/pages/navbar` # 创建组件并指定目录
- 创建一个页面
starfe-cli addpage Profile # 创建页面
- 添加 store 用于实现状态管理
starfe-cli addstore profile # 添加store的子模块
MIT © sysu-star-king