Commit a062d89a authored by lipengcheng 's avatar lipengcheng

feat: commitlint

parent 139a4714
module.exports = {
extends: ['@commitlint/config-conventional']
}
......@@ -8,6 +8,7 @@
基于vue-cli3完善的脚手架项目,增加一些基础通用配置。
包含配置如下:
- [x] 按需引入了lodash
- [x] moment二次封装进行汉化,并且配置为过滤器、实例方式调用
- [x] 生产环境打包去掉console
......@@ -20,6 +21,11 @@
- [x] 配置全局自定义指令
- [x] 配置`utils`方法并通过实例调用
- [x] 配置错误页面
- [x] eslint+prettier规范代码风格、格式化及语法校验
- [x] husky+lint-staged拦截commit,提交时做代码校验及修复
- [x] commitizen生成标准的commitMessage模板
- [x] commitlint做commitMessage规范校验
- [x] standard-version实现发版流程自动化及规范changelog
## 运行
......@@ -59,6 +65,16 @@ npm run fix
npm run prettier
```
## 开发流程及规范
### 分支说明
### 操作流程
### 代码规范
1. 任何人本地出现代码格式相关校验的出错,不得强制忽略或者提交,必须在本地处理完再提交。
2.
## 相关指南
......
......@@ -20,6 +20,7 @@
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "echo 'pushing....'",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"...": "..."
}
},
......@@ -49,6 +50,8 @@
}
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@vue/cli-plugin-babel": "^4.5.0",
"@vue/cli-plugin-eslint": "^4.5.4",
"@vue/cli-plugin-pwa": "^4.5.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment