Files
Situation-Awareness-Platfor…/README.md

63 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Tcode
架构:基于[create-vue](https://github.com/vuejs/create-vue)构建vite+vue3+pinia+scss
组件库:[Vue DevUI](https://vue-devui.github.io/)
# 规范
- 使用eslint保存自动格式化
- 页面和组件文件夹命名及引用为大驼峰IssueIssueItem其他文件夹小驼峰common
- 代码内变量方法名为小驼峰issueNum
- css类名为蛇形submit-btn-color
- 分支命名(关键字/模块/功能fix/mr/bigfile-issue-create
```
关键字包括feat、 hotfix、refactor等类型
```
- commit提交规范feat完成issue创建功能
```
feat 新增功能
fix: 修复 bug
docs: 仅仅修改了文档,比如 README, CHANGELOG, CONTRIBUTE等等
style: 仅仅修改了空格、格式缩进、逗号等等,不改变代码逻辑
refactor: 代码重构,没有加新功能或者修复 bug
perf: 优化相关,比如提升性能、体验
test: 测试用例,包括单元测试、集成测试等
chore: 改变构建流程、或者增加依赖库、工具等
revert: 回滚到上一个版本
```
## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
# 安装依赖
npm install
```
### start
```sh
npm run dev # 开发
npm run prod # 生产
```
### build
```sh
npm run build:dev # 开发
npm run build:prod # 生产
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```