Vite4 + Vue3 + JavaScript + Vue Router + Pinia + TDesign + Sass + Axios + ESLint + Stylelint + Prettier
vue3-start-template 基于 Vue3.5、Vite5、Pinia、Naive-ui 开发构建用于初始化项目的模板。
- ⚡️ Vite 5 - born with fastness
- 🖖 Vue 3 - Composition API and
<script setup>
- 🚦 Vue Router - The official router for Vue.js.
- 📦 Pinia - Intuitive, type safe and flexible Store for Vue
- 💻 TDesign - Vue Next for Web
- 🎨 Sass - It's CSS, with just a little more
- 🔗 Fetch - Fetch is the modern replacement for XMLHttpRequest
- 🧰 Husky + Lint-Staged - Git Hook Tools
- 🛡️ EditorConfig + ESLint + Prettier + Stylelint + AlloyTeam JavaScript Style Guide - Code Standards
- 🔨 Commitizen + Commitlint - Submit Standards
- Prettier
- ESLint
- Stylelint
配置参考:https://stylelint.io
- npm - 包管理器
- Visual Stuido Code 扩展
vue3-start-template
├─ .vscode # VSCode 推荐配置
├─ public # 静态资源文件(该文件夹不会被打包)
├─ src
│ ├─ api # API 接口管理
│ ├─ assets # 静态资源文件
│ ├─ components # 全局组件
│ ├─ config # 全局配置项
│ ├─ directives # 全局指令文件
│ ├─ hooks # hooks封装
│ ├─ routers # 路由管理
│ ├─ stores # pinia store
│ ├─ styles # 全局样式文件
│ ├─ utils # 常用工具库
│ ├─ views # 项目所有页面
│ ├─ App.vue # 项目主组件
│ ├─ main.js # 项目入口文件
├─ .commitlintrc.js # commit提交规范配置
├─ .editorconfig # 统一不同编辑器的编码风格
├─ .eslintignore # 忽略 Eslint 校验
├─ .eslintrc.js # Eslint 校验配置文件
├─ .gitignore # 忽略 git 提交
├─ .npmcheckrc # npm包检查忽略文件
├─ .prettierignore # 忽略 Prettier 格式化
├─ .prettierrc.js # Prettier 格式化配置
├─ .stylelintignore # 忽略 stylelint 格式化
├─ .stylelintrc.js # stylelint 样式格式化配置
├─ index.html # 入口 html
├─ package-lock.json # 依赖包包版本锁
├─ package.json # 依赖包管理
├─ .postcssrc.js # postcss 配置
├─ README.md # README 介绍
├─ CHANGELOG.md # 更新日志
└─ vite.config.mjs # vite 全局配置文件