0.0.3 • Published 11 months ago
li-vue v0.0.3
vue-base-template
vue+js 开发模板
包含的内容
格式化
- eslint 配置 ->
.eslintrc.js
+.eslintignore
- prettier 配置 ->
.prettierrc
+.prettierignore
- 冲突解决:
eslint-config-prettier
+eslint-plugin-prettier
开发包
- pinia 安装 + 使用
- axios 安装 + 二次封装
- sass 安装 + 全局变量的配置
- vue-router 安装 + 使用
- animate.css 的引入
- element 按需引入 + 同时配置 unplugin-auto-import
- echarts 按需引入
- iconfont 图标库引入
项目初始化
- 公共样式的编写
- 典型组件的抽离
- SvgIcon:图标组件
.env.development
+.env.production
+.env.test
.gitignore
README.md
的编写vite.config.js
配置代理 + @符号.cssrem
的配置(第三方插件用于单位转换)commitlint
提交的 comment 的规范化husky
在提交代码时对代码进行格式化- 配置开发包 -> 统一开发包的使用 -> 只允许使用
pnpm
- 全局组件(
globalComponent
)的注册- icon组件 -> 如果要使用 iconfont 中的图标,直接复制 svg 即可
mock
相关数据的配置 -> 模拟后端