-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,43 @@ | ||
# vue-seed | ||
|
||
> vue2 pc版项目脚手架 | ||
> Vue2 PC版项目脚手架 | ||
## 简单几步构建基础项目 | ||
|
||
### 安装依赖包 | ||
```bash | ||
$ yarn install | ||
# or | ||
$ yarn | ||
``` | ||
# 安装依赖 | ||
npm install | ||
|
||
# 启动开发服务 http://localhost:8080 | ||
npm run dev | ||
### 生成Dll文件 | ||
```bash | ||
$ yarn run build:dll | ||
``` | ||
|
||
### 开发环境 | ||
```bash | ||
$ yarn run dev | ||
``` | ||
|
||
### 生产环境 | ||
```bash | ||
$ yarn run build | ||
# then | ||
$ yarn run start | ||
``` | ||
|
||
### 代码校验 ESlint | ||
```bash | ||
$ yarn run lint | ||
``` | ||
|
||
# 构建项目 | ||
npm run build | ||
### 代码修复 | ||
```bash | ||
$ yarn run lint:fix | ||
``` | ||
|
||
## 简介 | ||
* 单点登录功能 | ||
* 图片懒加载功能 | ||
* 页面底部在内容加载后显示 | ||
* 公共api抽离 | ||
* 公共js方法抽离 | ||
* 公共filter抽离 | ||
* element-ui组件库引入 | ||
* vuex状态机管理公共数据 | ||
* vue-router路由钩子进行页面访问控制 | ||
* vue-router路由页面组件懒加载 | ||
* css预处理和babel ES6语法处理 | ||
* api代理及图片cdn处理 | ||
* api错误统一处理及友好提示 | ||
* api请求数据mock模拟,部分功能不能用,可以查看测试环境:http://www.jtt.com | ||
* ie9兼容es6语法处理 | ||
* 开发配置统一提取到config/address.config.js,统一设置 | ||
## 开发配置 | ||
* 代码构建配置提取到`config/index.js` | ||
* 开发环境配置提取到`config/address.config.js` |