chore: add audit and test scripts to package.json

This commit is contained in:
张翔
2026-03-06 10:10:12 +08:00
parent 614fa8f85e
commit fd2528fa52
+13 -1
View File
@@ -6,7 +6,16 @@
"dev": "next dev -p 3000",
"build": "next build",
"start": "next start -p 3000",
"lint": "eslint"
"lint": "eslint",
"test": "playwright test",
"test:smoke": "playwright test --grep @smoke",
"test:report": "allure generate test-results/allure-results && allure open",
"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"
},
"dependencies": {
"@antv/g2": "^5.4.8",
@@ -27,13 +36,16 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@axe-core/playwright": "^4.11.1",
"@tailwindcss/postcss": "^4",
"@types/dompurify": "^3.0.5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"chrome-launcher": "^1.2.1",
"eslint": "^10.0.2",
"eslint-config-next": "^0.2.4",
"lighthouse": "^13.0.3",
"tailwindcss": "^4",
"typescript": "^5"
}