Files
张翔 0b246b3e24 chore: 配置与基础设施更新
- 开发服务器端口从 3002 改为 5174
- vitest 配置从 vue plugin 改为 react plugin
- playwright 新增 uat 项目配置,修正 baseURL
- 添加 less 依赖支持
- 修复各页面 catch 块空语句为注释标记
2026-05-06 14:17:31 +08:00

82 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",
"less": "^4.6.4",
"prettier": "^3.1.1",
"terser": "^5.46.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vitest": "^4.0.16"
}
}