mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:48:24 +01:00
scripts/site-template is now bitbaum/fleet templates/app — Next.js 16, better-auth accounts (password, link, passkey, 2FA, OrangeCat/bitbaum sign-in as env-gated OIDC), en/de/fr, nonce CSP, ai-kit/mail-kit/limitkit/bip-kit, tests and CI — copied at a pinned fleet commit by scripts/templates/sync-starter.sh. CI proves the copy is exact (sync-starter.sh --check), and starter-sync.yml opens the PR when fleet's starter moves. Never edited here. The kickoff's "nextjs-tailwind" starter seeds the same app from src/lib/starter-app.generated.ts (generated from the directory, pinned by scripts/test/starter-app.ts), minus the workflows register-site.sh adds with the site's CD. The repo is seeded in one Trees API call with inline contents instead of a blob POST per file (~85 for this starter). The widget token rides in .env.production; the starter's .gitleaks.toml allows NEXT_PUBLIC_* values. The new-from-scratch picker reads the light template list, so the starter's file bodies never reach a client bundle. Both paths give the site its database and auth/seal secrets ON THE BOX (scripts/hetzner/provision-db-on-box.sh: role + database, ~/.db-credentials, /opt/<slug>/shared/.env; existing secrets never replaced; nothing printed), and record the db in the register row so every deploy applies drizzle/. register-site.sh seeds the starter's full workflow set to starter repos and the golden CI floor to anything else, never overwriting another repo's ci.yml. test-site-template.sh follows the starter (verify SSOT, design tokens instead of a local palette) and its comment stripper is fixed: the sed range deleted the page from the doc comment to EOF, so every day-zero check had been passing against an empty string. check-template-contrast.mjs and the starter-lock generator are retired with the files they checked. Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy Co-authored-by: Claude <noreply@anthropic.com>
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"name": "__SLUG__",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=24"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"role:grant": "node scripts/grant-role.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@better-auth/passkey": "^1.7.7",
|
|
"@bitbaum/ai-kit": "^1.20.1",
|
|
"@bitbaum/design-tokens": "^1.1.0",
|
|
"@bitbaum/mail-kit": "^0.1.1",
|
|
"better-auth": "^1.7.7",
|
|
"bip-kit": "^0.6.0",
|
|
"drizzle-orm": "^0.45.4",
|
|
"limitkit": "^0.2.0",
|
|
"next": "16.4.0",
|
|
"next-intl": "^4.14.9",
|
|
"pg": "^8.23.1",
|
|
"react": "19.3.0",
|
|
"react-dom": "19.3.0",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@types/node": "^26.6.5",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"drizzle-kit": "^0.31.11",
|
|
"eslint": "^10.12.0",
|
|
"eslint-config-next": "16.4.0",
|
|
"prettier": "3.9.10",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|