- 添加 .editorconfig, .gitignore, .prettierrc.json 等配置文件 - 创建项目目录结构,包括 src, test 等文件夹 - 添加 Vue 3 和 Vite 相关依赖 - 配置 ESLint, Prettier 等代码规范工具 - 添加 README.md 文件,说明项目的基本信息和操作指南
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "parking",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
"preview": "vite preview",
|
|
"test:unit": "vitest",
|
|
"build-only": "vite build",
|
|
"type-check": "vue-tsc --build",
|
|
"format": "prettier --write src/"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.7.9",
|
|
"element-plus": "^2.9.3",
|
|
"pinia": "^2.3.0",
|
|
"vue": "^3.5.13",
|
|
"vue-router": "^4.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tsconfig/node22": "^22.0.0",
|
|
"@types/jsdom": "^21.1.7",
|
|
"@types/node": "^22.10.2",
|
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
"@vitest/eslint-plugin": "1.1.20",
|
|
"@vue/eslint-config-prettier": "^10.1.0",
|
|
"@vue/eslint-config-typescript": "^14.1.3",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"@vue/tsconfig": "^0.7.0",
|
|
"jsdom": "^25.0.1",
|
|
"npm-run-all2": "^7.0.1",
|
|
"oxlint": "^0.11.0",
|
|
"prettier": "^3.3.3",
|
|
"typescript": "~5.6.3",
|
|
"vite": "^6.0.5",
|
|
"vite-plugin-vue-devtools": "^7.6.8",
|
|
"vitest": "^2.1.8",
|
|
"vue-tsc": "^2.1.10"
|
|
}
|
|
}
|