f5dec95a83
refactor: 重构页面导航和滚动逻辑,提升用户体验 test: 更新测试配置和用例,增加覆盖率和稳定性 perf: 优化性能指标和阈值,适应开发环境需求 ci: 添加Lighthouse CI工作流,集成性能测试 docs: 更新API文档和健康检查端点 fix: 修复登录页面和表单提交问题 style: 调整响应式布局和可访问性改进 chore: 更新依赖项和脚本配置
58 lines
1.3 KiB
JSON
58 lines
1.3 KiB
JSON
ci:
|
|
collect:
|
|
numberOfRuns: 3
|
|
startServerCommand: npm run start
|
|
startServerReadyPattern: 'Local:'
|
|
url:
|
|
- http://localhost:3000/
|
|
- http://localhost:3000/about
|
|
- http://localhost:3000/services
|
|
- http://localhost:3000/products
|
|
- http://localhost:3000/cases
|
|
- http://localhost:3000/news
|
|
- http://localhost:3000/contact
|
|
settings:
|
|
preset: desktop
|
|
onlyCategories:
|
|
- performance
|
|
- accessibility
|
|
- best-practices
|
|
- seo
|
|
|
|
assert:
|
|
assertions:
|
|
categories:performance:
|
|
- error
|
|
- minScore: 0.9
|
|
categories:accessibility:
|
|
- error
|
|
- minScore: 0.9
|
|
categories:best-practices:
|
|
- error
|
|
- minScore: 0.9
|
|
categories:seo:
|
|
- error
|
|
- minScore: 0.9
|
|
first-contentful-paint:
|
|
- error
|
|
- maxNumericValue: 2000
|
|
largest-contentful-paint:
|
|
- error
|
|
- maxNumericValue: 3000
|
|
cumulative-layout-shift:
|
|
- error
|
|
- maxNumericValue: 0.1
|
|
total-blocking-time:
|
|
- error
|
|
- maxNumericValue: 300
|
|
speed-index:
|
|
- error
|
|
- maxNumericValue: 3000
|
|
|
|
upload:
|
|
target: temporary-public-storage
|
|
|
|
settings:
|
|
output: html
|
|
outputPath: lighthouse-reports
|