61 lines
1.2 KiB
Markdown
61 lines
1.2 KiB
Markdown
# vue3-template
|
||
|
||
基于vite的vue3 项目基础模板
|
||
|
||
vue3:3.3.11
|
||
|
||
vue-router:4.2.5
|
||
|
||
pinia:2.1.7
|
||
|
||
element-plus:2.4.4
|
||
|
||
store持久化存储:[pinia-plugin-persistedstate](https://prazdevs.github.io/pinia-plugin-persistedstate/guide/config.html):3.2.1
|
||
|
||
mitt:3.0.1
|
||
|
||
## Customize configuration
|
||
|
||
vite配置 [Vite Configuration Reference](https://vitejs.dev/config/).
|
||
|
||
## 项目初始化
|
||
|
||
```sh
|
||
npm install
|
||
```
|
||
|
||
### 运行dev服务
|
||
|
||
```sh
|
||
npm run dev
|
||
```
|
||
|
||
### 构建项目
|
||
|
||
```sh
|
||
npm run build
|
||
```
|
||
|
||
### [ESLint](https://eslint.org/)
|
||
|
||
```sh
|
||
npm run lint
|
||
```
|
||
|
||
## Git提交规范
|
||
|
||
- 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
|
||
|
||
- `feat` 增加新功能
|
||
- `fix` 修复问题/BUG
|
||
- `style` 代码风格相关无影响运行结果的
|
||
- `perf` 优化/性能提升
|
||
- `refactor` 重构
|
||
- `revert` 撤销修改
|
||
- `test` 测试相关
|
||
- `docs` 文档/注释
|
||
- `chore` 依赖更新/脚手架配置修改等
|
||
- `workflow` 工作流改进
|
||
- `ci` 持续集成
|
||
- `types` 类型定义文件更改
|