Files
Spoolman/client_v2/package.json
Donkie 8a5cf7ec73 client_v2: add mobile accessibility audit (Playwright + axe-core)
Adds an npm run audit:a11y target that runs axe-core (WCAG 2.0/2.1 A+AA
plus the 2.2 target-size rule) and a custom tap-target measurement across
the main surfaces under Pixel 5 emulation, reusing the dev server on 5174.
Results are aggregated to a11y-report.md via globalTeardown so they survive
Playwright worker restarts.
2026-07-25 19:07:24 +02:00

55 lines
1.5 KiB
JSON

{
"name": "spoolman-client-v2",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"strip-empty-locales": "node scripts/strip-empty-locales.mjs",
"predev": "node scripts/strip-empty-locales.mjs",
"dev": "vite dev",
"prebuild": "node scripts/strip-empty-locales.mjs",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"lint:eslint": "eslint .",
"audit:a11y": "playwright test",
"audit:a11y:report": "playwright show-report"
},
"devDependencies": {
"@axe-core/playwright": "^4.12.1",
"@eslint/js": "^9.39.5",
"@inlang/paraglide-js": "^2.18.2",
"@playwright/test": "^1.62.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.1",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/qrcode": "^1.5.6",
"eslint": "^9.39.5",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.22.0",
"globals": "^16.5.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"svelte": "^5.1.9",
"svelte-check": "^4.0.5",
"typescript": "^5.6.3",
"typescript-eslint": "^8.65.0",
"vite": "^5.4.10"
},
"dependencies": {
"@lucide/svelte": "^1.25.0",
"fflate": "^0.8.3",
"konva": "^10.3.0",
"qr-scanner": "^1.4.2",
"qrcode": "^1.5.4",
"svelte-dnd-action": "^0.9.74",
"svelte-konva": "^1.0.1"
},
"allowScripts": {
"esbuild@0.21.5": true
}
}