04c7f6e68a
Tests · UI / test (push) Failing after 7m31s
Native SvelteKit service worker (src/service-worker.ts): a version-keyed cache precaches the app shell + build artefacts (incl. core.wasm) + static files; activate purges old caches; the gateway is never intercepted; navigations fall back to the cached shell offline. Adds static/manifest.webmanifest, a generated placeholder icon set (scripts/gen-pwa-icons.mjs — dependency-free pure-Node PNG encoder), and manifest / theme-color / apple-touch tags in app.html. Gated by Playwright against a production preview (playwright.pwa.config.ts + tests/pwa/pwa.spec.ts via `pnpm test:pwa`, wired into ui-test): manifest + installable icons, SW registration + a single version-keyed cache, and offline shell load. Lighthouse is not used — its PWA category was removed in v12. Docs: ui/docs/pwa-strategy.md (+ index); F5 marked done. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"name": "galaxy-ui-frontend",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"test": "vitest run",
|
|
"test:e2e": "playwright test",
|
|
"test:pwa": "playwright test --config playwright.pwa.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"flatbuffers": "^25.9.23",
|
|
"idb": "^8.0.3",
|
|
"pixi-viewport": "^6.0.3",
|
|
"pixi.js": "^8.18.1"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "4.11.3",
|
|
"@bufbuild/protobuf": "^2.12.0",
|
|
"@bufbuild/protoc-gen-es": "^2.12.0",
|
|
"@connectrpc/connect": "^2.1.1",
|
|
"@connectrpc/connect-web": "^2.1.1",
|
|
"@playwright/test": "^1.59.1",
|
|
"@sveltejs/adapter-static": "^3.0.0",
|
|
"@sveltejs/kit": "^2.59.0",
|
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/svelte": "^5.2.0",
|
|
"@types/node": "^22.0.0",
|
|
"fake-indexeddb": "^6.2.5",
|
|
"jsdom": "^25.0.0",
|
|
"playwright": "^1.59.1",
|
|
"svelte": "^5.0.0",
|
|
"svelte-check": "^4.0.0",
|
|
"tslib": "^2.6.0",
|
|
"typescript": "^5.5.0",
|
|
"vite": "^8.0.0",
|
|
"vitest": "^4.0.0"
|
|
}
|
|
}
|