mirror of
https://github.com/lukaszraczylo/beat-delivery-methodology.git
synced 2026-11-25 11:06:00 +00:00
Adds two dev-only harnesses and reports what they find. No application code is touched. scripts/check-a11y.mjs runs axe-core 4.14 against the built site over every router route and alias, at 360px and 1440px, in the light and dark themes. The theme is set through localStorage['beat-theme'] and asserted on every page before scanning, so a theme that fails to apply aborts the run. scripts/check-a11y-manual.mjs records the manual criteria as assertions: keyboard operability with a visible focus indicator, landmarks, heading order, meaningful link text, alt text, and measured contrast computed from the rendered DOM. axe-core and playwright-core are added as devDependencies. playwright-core is used rather than playwright so no postinstall browser download happens and `npm ci` in the Pages workflow stays clean.
26 lines
580 B
JSON
26 lines
580 B
JSON
{
|
|
"name": "beat-methodology",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build && node ../scripts/generate-404.mjs",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
"vue": "^3.4.21",
|
|
"vue-router": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
"autoprefixer": "^10.4.18",
|
|
"axe-core": "^4.14.0",
|
|
"playwright-core": "^1.64.1",
|
|
"postcss": "^8.4.35",
|
|
"tailwindcss": "^3.4.1",
|
|
"vite": "^8.0.0"
|
|
}
|
|
}
|