File tree Expand file tree Collapse file tree 1 file changed +33
-24
lines changed Expand file tree Collapse file tree 1 file changed +33
-24
lines changed Original file line number Diff line number Diff line change 1
1
# vue-seed
2
2
3
- > vue2 pc版项目脚手架
3
+ > Vue2 PC版项目脚手架
4
4
5
5
## 简单几步构建基础项目
6
6
7
+ ### 安装依赖包
8
+ ``` bash
9
+ $ yarn install
10
+ # or
11
+ $ yarn
7
12
```
8
- # 安装依赖
9
- npm install
10
13
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
+ ```
13
35
14
- # 构建项目
15
- npm run build
36
+ ### 代码修复
37
+ ``` bash
38
+ $ yarn run lint:fix
16
39
```
17
40
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 `
You can’t perform that action at this time.
0 commit comments