Files
it/frontend/package.json
XCool f25b0307db
Some checks failed
CI/CD Pipeline / 测试 (18.x) (push) Has been cancelled
CI/CD Pipeline / 测试 (20.x) (push) Has been cancelled
CI/CD Pipeline / 安全检查 (push) Has been cancelled
CI/CD Pipeline / 部署 (push) Has been cancelled
CI/CD Pipeline / 通知 (push) Has been cancelled
初始化
2025-11-03 19:47:36 +08:00

135 lines
3.4 KiB
JSON

{
"name": "hardware-performance-frontend",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "硬件性能对比平台前端应用",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"build:pwa": "vite build --mode production",
"serve:pwa": "vite preview --port 4173 --host",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write src/",
"test": "node scripts/test.js",
"test:unit": "vitest run",
"test:unit:watch": "vitest",
"test:unit:coverage": "vitest run --coverage",
"test:component": "vitest run --dir tests/unit/components",
"test:api": "vitest run --dir tests/unit/services",
"test:store": "vitest run --dir tests/unit/stores",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug",
"test:ci": "node scripts/test.js --ci",
"quality": "npm run lint && npm run format",
"quality-report": "node scripts/quality-report.js",
"prepare": "husky install"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.0",
"axios": "^1.6.0",
"echarts": "^5.6.0",
"element-plus": "^2.4.0",
"pinia": "^2.1.7",
"vant": "^4.8.0",
"vue": "^3.4.0",
"vue-echarts": "^6.7.3",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.0",
"@vue/test-utils": "^2.4.1",
"@vue/tsconfig": "^0.4.0",
"autoprefixer": "^10.4.0",
"eslint": "^8.48.0",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"playwright": "^1.37.1",
"postcss": "^8.4.0",
"prettier": "^3.0.3",
"tailwindcss": "^3.3.0",
"terser": "^5.44.0",
"typescript": "~5.2.2",
"vite": "^5.0.0",
"vitest": "^0.34.4",
"vue-tsc": "^1.8.8"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
],
"pwa": {
"name": "硬件性能对比",
"short_name": "硬件性能",
"description": "专业的CPU、GPU性能数据对比平台",
"theme_color": "#409EFF",
"background_color": "#f5f7fa",
"display": "standalone",
"start_url": "/",
"scope": "/",
"icons": [
{
"src": "/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
},
"lint-staged": {
"*.{js,ts,vue}": [
"eslint --fix",
"prettier --write"
],
"*.{css,scss,json,md}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test:unit"
}
}
}