bean-sprouts-cli
v1.1.24
Published
quick set your bean-sprouts
Downloads
56
Readme
快速搭建脚手架 cli
最新说明 v1.1.1 2021-03-02 通过 npm 进行安装
安装
npm install -g bean-sprouts-cli
yarn global add bean-sprouts-cli
安装项目
以下二选一
bean-sprouts-cli create [your-project-name]
# 或者
bsc create [your-project-name]
选择自己的类型, 目前支持
- 默认
- 微前端-主应用
- 微前端-子应用
- vue3
- vue3+ts
v1.0 版本
说明: 拉取的地址为内网 devops 地址, 需要确保自己可以访问
具体的执行步骤为
全局执行
- 设置全局执行链接(也可以不设置, 直接在对应目录进行执行):
# 注意修改自己的 bean-sprouts-cli 的实际路径
# 建议全局的一个命令行映射
ln -s /Users/qs/source/bean-sprouts-cli/script/bean-sprouts-cli.js /usr/local/bin/bean-sprouts-cli
- 在需要的目录进行执行命令
bean-sprouts-cli create [your-project-name]
局部执行的方法
./bean-sprouts-cli.js
如果提示不可以执行, 需要添加可执行权限
chmod a+x ./bean-sprouts-cli.js