8840c4398a
- Downgrade Next.js 16→14.2, React 19→18.3, Tailwind 4→3.4 - Add comprehensive GA4 error monitoring system - Create Jenkins CI/CD pipeline with quality gates - Fix build issues: ESLint, SWC conflict, config format - Add documentation for deployment and error tracking
95 lines
3.4 KiB
JSON
95 lines
3.4 KiB
JSON
{
|
|
"name": "ruixin-website-react",
|
|
"version": "1.0.0-phase1",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev -p 3000",
|
|
"dev:clean": "rm -rf .next dist && next dev -p 3000",
|
|
"build": "next build",
|
|
"build:clean": "rm -rf .next dist && next build",
|
|
"start": "npx serve dist -p 3000",
|
|
"lint": "eslint",
|
|
"type-check": "tsc --noEmit",
|
|
"preview": "npx serve dist -p 3000",
|
|
"test": "cd e2e && npx playwright test --config=playwright.config.ts",
|
|
"test:unit": "jest",
|
|
"test:coverage": "jest --coverage",
|
|
"test:coverage:check": "jest --coverage --ci",
|
|
"coverage:report": "open coverage/lcov-report/index.html",
|
|
"test:e2e": "cd e2e && npm test",
|
|
"test:smoke": "cd e2e && npx playwright test --grep @smoke",
|
|
"test:performance": "k6 run tests/performance/load-test.js",
|
|
"test:stress": "k6 run tests/performance/stress-test.js",
|
|
"check:contrast": "tsx scripts/utils/check-color-contrast.ts",
|
|
"check:headings": "tsx scripts/utils/check-heading-hierarchy.ts",
|
|
"audit:performance": "node scripts/performance-audit.js",
|
|
"audit:seo": "node scripts/seo-check.js",
|
|
"audit:accessibility": "node scripts/accessibility-test.js",
|
|
"audit:forms": "node scripts/form-validation.js",
|
|
"audit:all": "./scripts/run-all-tests.sh",
|
|
"report:generate": "node scripts/generate-test-report.js",
|
|
"lighthouse": "lhci autorun",
|
|
"lighthouse:collect": "lhci collect",
|
|
"lighthouse:assert": "lhci assert",
|
|
"lighthouse:upload": "lhci upload",
|
|
"lighthouse:desktop": "lhci autorun --settings.preset=desktop",
|
|
"lighthouse:mobile": "lhci autorun --settings.preset=mobile",
|
|
"clean:tests": "bash scripts/maintenance/clean-test-files.sh",
|
|
"prepare": "husky"
|
|
},
|
|
"dependencies": {
|
|
"@playwright/test": "^1.58.2",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@sentry/nextjs": "^10.52.0",
|
|
"@sentry/tracing": "^7.120.4",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"framer-motion": "^12.34.3",
|
|
"lucide-react": "^0.563.0",
|
|
"next": "^14.2.21",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"tailwind-merge": "^3.4.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.11.1",
|
|
"@babel/core": "^7.29.0",
|
|
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
"@babel/preset-env": "^7.29.0",
|
|
"@babel/preset-react": "^7.28.5",
|
|
"@babel/preset-typescript": "^7.28.5",
|
|
"@commitlint/cli": "^20.5.0",
|
|
"@commitlint/config-conventional": "^20.5.0",
|
|
"@eslint/eslintrc": "^3.3.5",
|
|
"@lhci/cli": "^0.15.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^20",
|
|
"@types/react": "^18",
|
|
"@types/react-dom": "^18",
|
|
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
"@typescript-eslint/parser": "^8.57.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"chrome-launcher": "^1.2.1",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-next": "^14.2.21",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"husky": "^9.1.7",
|
|
"jest": "^30.2.0",
|
|
"jest-environment-jsdom": "^30.2.0",
|
|
"k6": "^0.0.0",
|
|
"lighthouse": "^13.0.3",
|
|
"lint-staged": "^16.4.0",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.17",
|
|
"ts-jest": "^29.4.6",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5"
|
|
}
|
|
}
|