# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# 打包测试环境
npm run build-test
# 打包正式环境
npm run build-prod
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm testFor a detailed explanation on how things work, check out the guide and docs for vue-loader.
-
前端框架:vue2
-
UI框架: Element-UI
-
路由管理:vue-router
-
状态管理:vuex
dist # 打包目录
|
src # 开发目录
├── index.html
├── main.js # 主配置
├── App.vue # 入口布局
├── assets # 静态资源
│ ├── images
│ └── css
│ ├── base.scss # 基础样式
│ └── mixin.scss # 常用的混合属性
│
├── utils # 公共方法
├── api # 接口api相关
│
├── components
│ └── ...# 公共组件
│
├── pages # 页面
│
├── router
│ ├── index # 路由配置
│ ├── home # 首页模块路由
│ ├── login # 登录模块路由
│ └── ...
│
└── store # 全局store管理
feat: 新功能
fix: 修补bug
docs: 文档
style: 格式(不影响代码运行的变动)
test: 添加测试