- Add vite.config.pwa.ts extending the base config with VitePWA plugin - Generate PWA icons at build time from source logo via @vite-pwa/assets-generator - Add web app manifest with name, theme color, display overrides - Add Workbox runtime caching: NetworkFirst for API, CacheFirst for assets - Set navigateFallback to null to preserve server-side auth redirects - Server build uses build:pwa for PWA-enabled output; Electron/Tauri use the base build without PWA Signed-off-by: Jesper Derehag <jderehag@hotmail.com>
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"name": "@codenomad/ui",
|
|
"version": "0.9.5",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"build:pwa": "vite build -c vite.config.pwa.ts",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"@git-diff-view/solid": "^0.0.8",
|
|
"@kobalte/core": "0.13.11",
|
|
"@opencode-ai/sdk": "1.1.11",
|
|
"@solidjs/router": "^0.13.0",
|
|
"@suid/icons-material": "^0.9.0",
|
|
"@suid/material": "^0.19.0",
|
|
"@suid/system": "^0.14.0",
|
|
"@tauri-apps/plugin-opener": "^2.5.3",
|
|
"ansi-sequence-parser": "^1.1.3",
|
|
"debug": "^4.4.3",
|
|
"github-markdown-css": "^5.8.1",
|
|
"lucide-solid": "^0.300.0",
|
|
"marked": "^12.0.0",
|
|
"qrcode": "^1.5.3",
|
|
"shiki": "^3.13.0",
|
|
"solid-js": "^1.8.0",
|
|
"solid-toast": "^0.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vite-pwa/assets-generator": "^1.0.2",
|
|
"autoprefixer": "10.4.21",
|
|
"postcss": "8.5.6",
|
|
"tailwindcss": "3",
|
|
"typescript": "^5.3.0",
|
|
"vite": "^5.0.0",
|
|
"vite-plugin-pwa": "^1.2.0",
|
|
"vite-plugin-solid": "^2.10.0"
|
|
}
|
|
}
|