Project starter: ipal-kit create <domain> generates a new site from the reference site

- bin `ipal-kit` (subcommand `create`): the architecture questions (or --answers JSON),
  rendering from reference/ through starter.manifest.json (placeholders, @starter:if variants,
  //: alternatives, demo dropped), answers into AGENTS.md "Project decisions" and ipal-doctor.json,
  local .env with a fresh PAYLOAD_SECRET, install from the shipped lockfile, ipal-skills,
  ipal-tokens, generate:types/importmap, typecheck, ipal-doctor when shipped, secret check,
  first commit
- @intecion/ipal-kit/starter: the building blocks (renderSite, validateAnswers, applyVariants,
  collectBundle, lockfileWithoutPlugin, secretFindings …)
- build:starter packs reference/ into dist/starter/template.json.gz (90 KB);
  starter:gate in prepublishOnly: site from the packed tarball, frozen install, seed, build,
  targeted SEED_ONLY seed in production mode, full seed refused, pnpm start checks
- D15: plugin dependencies pinned exactly (nodemailer 10.3.1)
- reference/: @starter:if markers (runs as before), manifest generate/variants/rewrite
- docs: project-starter.md, AGENT.md, ipal-setup, ipal-site, ipal-reference (+ api.md),
  README, PROGRAMISTA §2, CHANGELOG, docs/README, reference index

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:50:44 +01:00
co-authored by Claude Opus 5.5
parent 154049662e
commit 804a09efed
43 changed files with 2902 additions and 99 deletions
+16
View File
@@ -1,4 +1,8 @@
# @starter:if demo
# Example Studio — reference site for @intecion/ipal-kit. Copy to .env for local work.
# @starter:else
#: # Example Studio — copy to .env for local work (`ipal-kit create` already wrote one with a fresh PAYLOAD_SECRET).
# @starter:endif
# Production values live in the Coolify app → Environment Variables (docs/DEPLOY.md), never in the repo.
# MongoDB — database name from databaseNamesFor('example-studio.pl'): example-studiopl_dev / example-studiopl_prod
@@ -17,6 +21,14 @@ IPAL_NOINDEX=
# NEVER set in Coolify — production requires R2.
ALLOW_LOCAL_MEDIA=
# @starter:if graph
#: # Microsoft Graph e-mail (agency-level, all four) — email.md
#: GRAPH_TENANT_ID=
#: GRAPH_CLIENT_ID=
#: GRAPH_CLIENT_SECRET=
#: GRAPH_SENDER=
# @starter:endif
# Cloudflare R2 — all or none; empty = media on local disk (dev)
R2_BUCKET=
R2_ENDPOINT=
@@ -28,16 +40,20 @@ R2_PUBLIC_URL=
NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000AA
# @starter:if crawl
# Cookie scanner "Crawl site" — the shared services/cookie-crawler deployment
IPAL_COOKIE_SCAN_URL=
IPAL_COOKIE_SCAN_TOKEN=
# @starter:endif
# IndexNow key (or generate one in Site integrations)
INDEXNOW_KEY=
# @starter:if demo
# Smoke tests only (e2e/, pnpm test:e2e) — a test admin on the LOCAL / CI database, created by
# e2e/create-test-admin.ts with a known TOTP secret so the test signs in through the real 2FA screen.
# Test values, never used anywhere else; the script refuses a production or non-local database.
E2E_ADMIN_EMAIL=[email protected]
E2E_ADMIN_PASSWORD=e2e-RC2nC29eKC8HJHfg
E2E_TOTP_SECRET=JPURUZNWYTZX2L42MT4SS7736WWNQWBL
# @starter:endif