Skip to content

Commit 1389e2a

Browse files
committed
docs: usage
1 parent ecf54ea commit 1389e2a

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

README.md

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
# vue-seed
22

3-
> vue2 pc版项目脚手架
3+
> Vue2 PC版项目脚手架
44
55
## 简单几步构建基础项目
66

7+
### 安装依赖包
8+
```bash
9+
$ yarn install
10+
# or
11+
$ yarn
712
```
8-
# 安装依赖
9-
npm install
1013

11-
# 启动开发服务 http://localhost:8080
12-
npm run dev
14+
### 生成Dll文件
15+
```bash
16+
$ yarn run build:dll
17+
```
18+
19+
### 开发环境
20+
```bash
21+
$ yarn run dev
22+
```
23+
24+
### 生产环境
25+
```bash
26+
$ yarn run build
27+
# then
28+
$ yarn run start
29+
```
30+
31+
### 代码校验 ESlint
32+
```bash
33+
$ yarn run lint
34+
```
1335

14-
# 构建项目
15-
npm run build
36+
### 代码修复
37+
```bash
38+
$ yarn run lint:fix
1639
```
1740

18-
## 简介
19-
* 单点登录功能
20-
* 图片懒加载功能
21-
* 页面底部在内容加载后显示
22-
* 公共api抽离
23-
* 公共js方法抽离
24-
* 公共filter抽离
25-
* element-ui组件库引入
26-
* vuex状态机管理公共数据
27-
* vue-router路由钩子进行页面访问控制
28-
* vue-router路由页面组件懒加载
29-
* css预处理和babel ES6语法处理
30-
* api代理及图片cdn处理
31-
* api错误统一处理及友好提示
32-
* api请求数据mock模拟,部分功能不能用,可以查看测试环境:http://www.jtt.com
33-
* ie9兼容es6语法处理
34-
* 开发配置统一提取到config/address.config.js,统一设置
41+
## 开发配置
42+
* 代码构建配置提取到`config/index.js`
43+
* 开发环境配置提取到`config/address.config.js`

0 commit comments

Comments
 (0)