mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Add complete PWA implementation including service worker registration, offline support, and installation prompts: - Add vite-plugin-pwa and workbox-window dependencies for PWA tooling - Configure VitePWA plugin with web app manifest and app metadata - Set up Workbox caching strategies for API endpoints and CDN assets - Implement service worker auto-update with user-triggered refresh - Create usePWAInstall hook to handle beforeinstallprompt events - Create useOnlineStatus hook for monitoring network connectivity - Add InstallPrompt component with haptic feedback integration - Add OfflineBanner component to notify users of offline status - Configure PWA icons and assets (64x64, 192x192, 512x512 variants) - Add TypeScript type declarations for virtual PWA register module - Integrate PWA components and service worker into App.tsx and main.tsx - Add PWA meta tags and viewport configuration to index.html
23 lines
857 B
JSON
23 lines
857 B
JSON
{
|
|
"name": "hapi",
|
|
"private": true,
|
|
"workspaces": ["cli", "server", "web"],
|
|
"scripts": {
|
|
"build": "bun run build:cli && bun run build:server && bun run build:web",
|
|
"build:cli": "cd cli && bun run build",
|
|
"build:server": "cd server && bun run build",
|
|
"build:web": "cd web && bun run build",
|
|
"dev:server": "cd server && bun run dev",
|
|
"dev:web": "cd web && bun run dev",
|
|
"typecheck": "bun run typecheck:cli && bun run typecheck:server && bun run typecheck:web",
|
|
"typecheck:cli": "cd cli && bun run typecheck",
|
|
"typecheck:server": "cd server && bun run typecheck",
|
|
"typecheck:web": "cd web && bun run typecheck",
|
|
"test": "cd cli && bun run test"
|
|
},
|
|
"devDependencies": {
|
|
"vite-plugin-pwa": "^1.2.0",
|
|
"workbox-window": "^7.4.0"
|
|
}
|
|
}
|