Files
hobbypj-contents/package.json
T
Bkk1234 5fb095b872 feat(storage): move project data to SQLite via node:sqlite
- server/db.mjs: schema (site + projects), transactional replace, WAL, VACUUM INTO backups (keep 10), JSON export, first-run seed from data/projects.json
- publish.mjs: read/write through the database, export mirror JSON for git/static/offline, validate duplicate project_id
- ui/data.js: read live data from /api/projects first, fall back to data/projects.json
- Dockerfile/compose/.env.example: DB_PATH, drop experimental sqlite warning flag
- docs: AGENTS.md + README describe the database layer and traps
2026-11-23 00:24:47 +07:00

12 lines
666 B
JSON

{
"name": "hobbypj-contents",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "หน้ารายชื่อโปรเจคอดิเรก (PWA + SPA) พร้อมหลังบ้านแก้ไขรายการ",
"scripts": {
"start": "node --disable-warning=ExperimentalWarning server/publish.mjs",
"check": "node --check ui/app.js && node --check ui/data.js && node --check ui/router.js && node --check ui/ui.js && node --check ui/pwa.js && node --check ui/views/home.js && node --check ui/views/admin.js && node --check sw.js && node --check server/publish.mjs && node --check server/db.mjs"
}
}