Adds scripts/seed-production.js (db:seed:production / db:setup:production): the curated pilot data — 8 council members, 2 Fenja admins, 10 roadmap items, the launch event, the pulse vote, and the welcome dispatch — so a production DB can be built reproducibly from git instead of committing the binary bifrost.db. Idempotent (every insert guarded). No credentials in the repo: council accounts get a random unusable hash; admin temp passwords are hashed at run time from ADMIN_SEED_PASSWORD (placeholder printed if unset, change on first login). Run on deploy as: pnpm db:setup:production. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "project-bifrost",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . && prettier --check .",
|
|
"test": "vitest run",
|
|
"db:migrate": "node scripts/migrate.js",
|
|
"db:seed": "node scripts/seed.js",
|
|
"db:seed:roadmap": "node scripts/seed-roadmap.js",
|
|
"db:seed:demo": "node scripts/seed-demo.js",
|
|
"db:seed:production": "node scripts/seed-production.js",
|
|
"db:setup": "node scripts/migrate.js && node scripts/seed.js && node scripts/seed-roadmap.js && node scripts/seed-demo.js",
|
|
"db:setup:production": "node scripts/migrate.js && node scripts/seed-production.js"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/node": "^8.3.0",
|
|
"astro": "^4.16.0",
|
|
"bcryptjs": "^2.4.3",
|
|
"better-sqlite3": "^11.3.0",
|
|
"marked": "^12.0.0",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"typescript": "^5.6.3",
|
|
"vitest": "^2.1.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": ["better-sqlite3", "esbuild", "sharp"]
|
|
}
|
|
}
|