mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 08:39:12 +01:00
* ci: strict verify gate + verify SSOT script Reconciles PR #109's intent onto post-#120 main (self-hosted, no Vercel): - add "verify" script (format:check && lint && test && build) — one definition of "green", run identically locally and in CI - ci.yml runs `npm ci` then a single `npm run verify` step (no --if-present: a missing/renamed gate script fails loudly) instead of the old split steps - add AGENTS.md, corrected to the real stack (Next.js 16 / React 19) and self-hosted Hetzner deploy referencing ci.yml — NOT the stale Vercel/Next14 draft from #109 that would have re-added Vercel Supersedes #109 (which conflicted on the workflow #120 renamed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * style: prettier --write repo to make the verify gate green The strict verify gate surfaced pre-existing format debt that main's long-red CI (blocked-Vercel deploy step) had masked. prettier --write is mechanical and content-preserving — the executive-docs keep their text (incl. the separate Vercel-in-financials follow-up), only whitespace is normalised. Also excludes the auto-generated next-env.d.ts from prettier. Build/lint/test already pass; this clears format:check so verify is truly green (and un-reds main on merge). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * style: reformat with the repo-pinned prettier config (printWidth 100) Prior format commit used a prettier invocation that didn't resolve .prettierrc (fell back to printWidth 80); the pinned config (printWidth 100) rejected it. Re-run with the repo's own prettier so format:check matches CI exactly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
AGENTS.md — Botsmann
Operating guide for automated agents and new contributors. Mirrors key facts from
.claude/CLAUDE.md. Keep this file in sync when the stack or workflow changes.
Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) |
| UI | React 19 |
| Language | TypeScript (strict) |
| Styling | Tailwind CSS |
| Database | Supabase (Postgres) |
| Testing | Jest (unit) + Playwright (e2e) |
| Deployment | Self-hosted (Hetzner + Caddy) |
Everyday commands
npm install # install deps
npm run dev # local dev server, port 3000
npm run build # production build (also type-checks)
npm run test # Jest unit tests
npm run test:e2e # Playwright end-to-end tests
verify — the single gate (SSOT)
npm run verify # format:check → lint → test → build
verify is the one definition of "green". CI runs it verbatim (see
.github/workflows/ci.yml), so a local green verify means a green CI.
Deployment
Botsmann is self-hosted on the Hetzner box "bitbaum" behind Caddy
(botsmann.orangecat.ch) — there is no Vercel. Deployment runs from the local
.husky/pre-push hook (build → rsync → systemd restart) when main is pushed.
The ci.yml workflow only validates verify on pushes and pull requests.