# vue2-webpack-template
**Repository Path**: donymh/vue2-webpack-template
## Basic Information
- **Project Name**: vue2-webpack-template
- **Description**: 【已停止更新维护】基于vue2框架搭建的通用中后台管理系统模板
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: dev
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-05-13
- **Last Updated**: 2025-05-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 前端资源汇总
https/dony.online/usage/
# 仓库地址
```
https://gitee.com/donymh/vue2-webpack-template.git
git clone https://gitee.com/donymh/vue2-webpack-template.git
```
# 项目目录结构
```
.
├── dist
├── public # 公共静态文件
├── src # 源码
│ ├── api # 接口请求
│ ├── assets # webpack打包的资源
│ ├── components # 公共组件
│ ├── constant # 常量
│ ├── directives # 全局指令
│ ├── icons # svg icon
│ ├── layout # 全局Layout
│ ├── router # 路由
│ ├── store # 全局store管理
│ ├── utils # 全局公共方法
│ ├── views # 所有业务页面
│ ├── App.vue
│ ├── main.ts
│ └── shims-vue.d.ts
├── tests
├── .browserslistrc
├── .eslintrc.js
├── .gitignore
├── .eslintrc.js
├── app.config.js # 前端配置文件
├── babel.config.js
├── cypress.json # e2e 单测配置
├── jest.config.js # 单测配置
├── package-lock.json
├── package.json
├── tsconfig.json
└── vue.config.js # vue webpack配置文件
```
# 启动流程
## 1. Project setup
### Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build:PROD
```
### Run your unit tests
```
npm run test:unit
```
### Run your end-to-end tests
```
npm run test:e2e
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
# 前端分支规范
参考:https://wiki.longhu.net/pages/viewpage.action?pageId=74876860
要点说明:
1. 常驻分支只有 2 个 master 与 dev,feature 分支可以根据具体的故事点来创建,其他的分支用完后可以删除,具体删除频率没有要求。
2. release 测试发布,上线完成之后合并代码到 master。
3. 由于需求的变更,某个故事点临时决定不上线的情况,如果该分支还没有合并到 dev,则暂时将该故事分支搁置;如果已经测试通过并合入到 dev,则由 SDM 与故事点的 Owner 确定处理方案。
4. - feature ↔ sit 环境
- feature ↔ uat 环境
- release ↔ pre 环境
- release、hotfix ↔ prod 环境