前端基础公共模板
- 技术栈:
Vue3
+TypeScript
+Vite
+Axios
+Pinia
+Vue Router
- UI框架:
Element Plus
- 项目构建与代码管理:
Eslint
+Stylelint
+Prettier
+Husky
+Lint-Staged
+CommitLint
+Commitizen
- 自动集成
Vue
、Vue Router
和Pinia
- 自动导入
src/components
目录下的公共组件,无需注册为全局组件 - 允许自定义组件的
name
属性 - 实现
Element Plus
的按需加载,并支持自定义主题色 - 在
git commit
前自动执行eslint
、stylelint
、prettier
代码规范检查 - 在
git commit
时校验提交信息的规范性commitlint
- 支持
production
和development
环境的不同配置 - 实现
pinia
状态管理的持久化 - 通过插件全局注册了自定义指令
- 路由切换时进度条显示
- 支持根据不同环境配置是否移除
console.log
和debugger
-
VSCode
插件推荐 - 包含自定义的 404 错误页面
- 集成国际化配置
- 集成
code inspector