72b1ee1d3d
Backend (Server.hs): - serveStaticOrSpa: serves static files from --static-dir - SPA fallback: extensionless paths serve index.html - MIME type mapping for html/css/js/png/svg/ico/woff2 Frontend: - ES module imports with import map for Mithril CDN - Build script: tsc + copy index.html + static assets CLI: - --static-dir flag (default: frontend/dist) - scripts/run passes through extra args - Dockerfile CMD points at /usr/local/share/sis/static
20 lines
425 B
JSON
20 lines
425 B
JSON
{
|
|
"name": "sis-frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Sis chore tracker SPA frontend",
|
|
"scripts": {
|
|
"build": "tsc && cp index.html dist/ && cp -r public/* dist/",
|
|
"dev": "tsc --watch",
|
|
"serve": "npx serve dist"
|
|
},
|
|
"dependencies": {
|
|
"mithril": "^2.2.13"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mithril": "^2.2.7",
|
|
"typescript": "^5.7.0",
|
|
"serve": "^14.2.0"
|
|
}
|
|
}
|