feat: import CarLog v2.8 code + dev plan
把 CarLog v2.8 全套源码 + 配置导入到 i 仓库作为 baseline: - server/src/ (13 个路由 + middleware + services + config) - server/migrations/ (0001~0018 共 18 个迁移 + mysql) - server/test/ (12 文件 101 测试) - client/src/ (20 个 view + components + stores + api + composables) - client/public/ + client/scripts/ - 全部配置文件 (.editorconfig, .eslintrc.json, .prettierrc.json, vitest.config.js, lighthouserc.json, .pa11yci.json, package.json, carlog-init.sql) - .husky/pre-commit (git hooks) - docs/install/ (宝塔部署文档) 不含: - node_modules/ (本地 npm install) - .env (敏感, 走 .env.example) - *.zip / *.log / *.sqlite / .DS_Store 新增文档 docs/DEV-PLAN.md: - Phase 1: 平台基座 (019 migration + 3 个 platform 路由 + 3 个 view) - Phase 2: CarLog 子系统化 (后端 routes/ → subsystems/carlog/ + 前端 views/ → views/subsystems/carlog/ + 元数据驱动菜单) - Phase 3: 验证 (测试 + E2E + DB 完整性) - 交付清单 + commit 模板 + 给 Mavis review 的材料 后续 Trae 实施, 提交后我 code review + 跑测试。
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"name": "carwash-system",
|
||||
"version": "2.0.0",
|
||||
"private": true,
|
||||
"description": "个人自用洗车记录系统 - Vue 3 + Node.js + MySQL/SQLite",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"install:all": "npm install && npm install --prefix server && npm install --prefix client && npm run build:client",
|
||||
"build:client": "npm run build --prefix client",
|
||||
"dev": "concurrently -k -n SERVER,CLIENT -c green,cyan \"npm:serve\" \"npm:dev:client\"",
|
||||
"dev:client": "npm run dev --prefix client",
|
||||
"migrate": "node server/src/bin/migrate.js",
|
||||
"serve": "node server/src/bin/serve.js",
|
||||
"users": "node server/src/bin/users.js",
|
||||
"weather": "node server/src/bin/weather.js",
|
||||
"grocy-sync": "node server/src/bin/grocy-sync.js",
|
||||
"grocy-refresh-products": "node server/src/bin/grocy-refresh-products.js",
|
||||
"export": "node server/src/bin/export.js",
|
||||
"backup": "node server/src/bin/backup.js",
|
||||
"seed-demo": "node server/src/bin/seed-demo.js",
|
||||
"verify": "node server/src/bin/verify.js",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check .",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"lighthouse": "lhci autorun",
|
||||
"lighthouse:pwa": "node client/scripts/check-pwa.mjs",
|
||||
"a11y": "pa11y-ci --config .pa11yci.json http://localhost:4173/login"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lhci/cli": "^0.15.1",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"concurrently": "^9.0.1",
|
||||
"eslint": "^8.57.0",
|
||||
"husky": "^9.1.0",
|
||||
"lint-staged": "^15.2.0",
|
||||
"pa11y-ci": "^4.1.1",
|
||||
"prettier": "^3.3.3",
|
||||
"supertest": "^7.0.0",
|
||||
"vitest": "^2.1.0",
|
||||
"vue-eslint-parser": "^9.4.3"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,vue}": [
|
||||
"eslint --fix",
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{json,md,yml,yaml,css}": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user