fow-cli
v0.1.6-beta
Published
Quickly generate vue projects, including PC and mobile.
Downloads
15
Readme
fow-cli 基于 Vue-cli 封装的自用工具
fow-cli
相比于vue-cli, fow-cli 做了如下改动:
- 默认添加三种创建项目模板 app, demo, 和 custom(自定义模板)
- demo 模板-->pc 项目常用插件配置和组件(element-ui + 自定义封装组件)
- app 模板-->移动端项目常用插件配置和组件(vant + 自定义封装组件)
- custom 模板-->可选择不同端(不包含 自定义封装组件)
Getting Started
Install, create and start.
# Install
$ npm install fow-cli -g
# Create app
$ fow new myapp --demo
# Start app
$ cd myapp
$ npm install
$ npm start
Commands
We have 3 commands: new
, init
and create
fow new [options]
Create app with new directory.
Usage Examples
$ fow new myapp
$ fow new myapp --demo
$ fow new myapp --app
options
--demo
-- 创建 PC 端项目--app
-- 创建 移动 端项目
fow init [options]
Create app in current directory. It's options is the same as fow new
.
$ fow init --demo
$ fow init --app
options
--demo
-- 创建 PC 端项目--app
-- 创建建移动端项目
fow create
自由选择配置项(不包含自定义组件),自动安装项目依赖,不需要 npm install
$ fow create
Usage Examples
fow create myapp
打包
# 普通打包
$ npm run build
方式 1:
git clone [email protected]:fooww-web/big-web/fooww-vue-cli.git
- 在
fooww-vue-cli
同级目录下执行vue create --preset .\fooww-vue-cli <project-name>
方式 2:
- 直接使用命令
vue create --preset 192.168.1.9:fooww-web/big-web/fooww-vue-cli --clone <project-name>