- 添加 .editorconfig, .gitignore, .prettierrc.json 等配置文件 - 创建项目目录结构,包括 src, test 等文件夹 - 添加 Vue 3 和 Vite 相关依赖 - 配置 ESLint, Prettier 等代码规范工具 - 添加 README.md 文件,说明项目的基本信息和操作指南
Parking
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
pnpm install
Compile and Hot-Reload for Development
pnpm dev
Type-Check, Compile and Minify for Production
pnpm build
Run Unit Tests with Vitest
pnpm test:unit
Lint with ESLint
pnpm lint
Description
Languages
Vue
72.1%
TypeScript
17.6%
JavaScript
4.1%
HTML
3.8%
CSS
2.4%