a01bcf791b
- T1.1: 卸载 Vue 依赖,安装 React 19 + Ant Design 5 + Zustand 5 + AntV 全家桶 - T1.2: Vite 配置迁移 (plugin-vue → plugin-react, manualChunks 更新) - T1.3: TypeScript 配置迁移 (jsx: preserve → react-jsx, 移除 .vue) - T1.4: ESLint 配置迁移 (Vue 规则 → React/Hooks/Refresh 规则) - T1.5: 入口文件迁移 (main.ts → main.tsx, App.vue → App.tsx, div#app → div#root) 验证: npm run dev 成功启动空白 React 应用
81 lines
2.9 KiB
JSON
81 lines
2.9 KiB
JSON
{
|
|
"name": "novalon-manage-web",
|
|
"version": "1.0.0",
|
|
"description": "Novalon Manage Web",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:local": "vite --mode development-local",
|
|
"dev:test": "vite --mode test",
|
|
"build": "tsc --noEmit && vite build",
|
|
"build:test": "tsc --noEmit && vite build --mode test",
|
|
"build:prod": "tsc --noEmit && vite build --mode production",
|
|
"preview": "vite preview",
|
|
"test": "vitest --run",
|
|
"test:ui": "vitest --ui",
|
|
"test:unit": "vitest --run --coverage",
|
|
"test:coverage": "vitest --run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:smoke": "playwright test --project=smoke",
|
|
"test:e2e:journeys": "playwright test --project=journeys",
|
|
"test:e2e:headed": "playwright test --headed",
|
|
"test:e2e:debug": "playwright test --debug",
|
|
"test:e2e:perf": "node scripts/measure-e2e-performance.js",
|
|
"test:perf": "node scripts/performance-test.js performance",
|
|
"test:load": "node scripts/performance-test.js load",
|
|
"test:perf:all": "node scripts/performance-test.js all",
|
|
"test:edge": "playwright test edge-cases.spec.ts",
|
|
"test:performance-opt": "playwright test performance-optimization.spec.ts",
|
|
"test:parallel-opt": "playwright test parallel-optimization.spec.ts",
|
|
"test:all-opt": "playwright test edge-cases.spec.ts performance-optimization.spec.ts parallel-optimization.spec.ts",
|
|
"test:monitor": "node e2e/performanceMonitor.js report",
|
|
"type-check": "tsc --noEmit",
|
|
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx --fix --ignore-path .gitignore",
|
|
"format": "prettier --write src/"
|
|
},
|
|
"dependencies": {
|
|
"@ant-design/icons": "^6.2.2",
|
|
"@ant-design/pro-components": "^2.8.10",
|
|
"@antv/g2": "^5.4.8",
|
|
"@antv/g6": "^5.1.0",
|
|
"@antv/l7": "^2.25.4",
|
|
"@antv/l7-maps": "^2.25.4",
|
|
"@antv/s2": "^2.7.0",
|
|
"antd": "^5.29.3",
|
|
"axios": "^1.16.0",
|
|
"crypto-js": "^4.2.0",
|
|
"date-fns": "^4.1.0",
|
|
"dayjs": "^1.11.10",
|
|
"jwt-decode": "^4.0.0",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5",
|
|
"react-router": "^7.14.2",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.40.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@types/node": "^20.10.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
"@typescript-eslint/parser": "^6.18.1",
|
|
"@vitejs/plugin-react": "^5.2.0",
|
|
"@vitest/coverage-v8": "^4.1.1",
|
|
"@vitest/ui": "^4.0.16",
|
|
"eslint": "^8.56.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
"jsdom": "^27.4.0",
|
|
"prettier": "^3.1.1",
|
|
"terser": "^5.46.1",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|