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 -1
View File
@@ -11,9 +11,19 @@ once there are more than 20.
## Unreleased
Database names follow one rule, and seeding a live site touches only the records you name. The block library:
fifteen ready page sections and ten page templates.
fifteen ready page sections and ten page templates. A new site in one command: `ipal-kit create`.
### New
- **`ipal-kit create` — a new site in one command** ([project-starter.md](./project-starter.md)):
`pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@<version> create intecion.com` asks the architecture
questions (or reads `--answers answers.json`), generates the site from the reference site (`reference/` through
`starter.manifest.json`: placeholders, `@starter:if` variants, demo left out), writes the answers into `AGENTS.md` →
Project decisions and `ipal-doctor.json`, installs from a shipped lockfile, runs `ipal-skills`, `ipal-tokens`,
`generate:types`, `generate:importmap`, `typecheck`, checks for secrets and makes the first commit. New bin `ipal-kit`
(subcommand `create`), new entry `@intecion/ipal-kit/starter` with the building blocks (`renderSite`,
`validateAnswers`, `applyVariants`, `collectBundle` …). New scripts `build:starter` and `starter:gate` in
`prepublishOnly`: a site made from the packed tarball must install frozen, seed, build, run the targeted seed in
production mode and serve `/pl` before a publish. Adds ~180 KB to the tarball.
- **Design-token standard** ([design-tokens.md](./design-tokens.md)): one set of `--ipal-*` names for every site,
only the values differ per brand. `@intecion/ipal-kit/tokens.css` (neutral defaults, light/dark on `data-theme`,
`[data-surface="inverse"]` scope, reduced motion), `@intecion/ipal-kit/tailwind.css` (Tailwind 4 preset: `bg-surface`,
@@ -50,6 +60,11 @@ fifteen ready page sections and ten page templates.
plugin repo (`reference/`, not shipped) and is built, seeded and smoke-tested in the plugin's CI.
### Changed
- The plugin's own dependencies are pinned to exact versions (`lucide-react` 0.400.0, `nodemailer` 10.3.1,
`server-only` 0.0.1, `slugify` 1.6.9), so two sites created from the same release get identical trees. Projects:
nothing to do (pnpm installs the pinned versions; `nodemailer` moves from 10.2.1 to 10.3.1).
- The reference site carries `@starter:if` markers (comment lines) and the starter's alternatives as `//: ` lines;
it runs exactly as before.
- **Cookie banner / button colours** read the single token names (`--ipal-surface`, `--ipal-text` …) instead of
`dark:` + `--ipal-*-dark`. With `tokens.css` they switch with the theme. Without it, the built-in fallback follows the
page's `color-scheme` (`light-dark()`): a site without a dark theme no longer gets a dark banner on a dark-mode