Commit graph vanilla_respondage/variants/build_all.sh
Author SHA1 Message Date
9cb0eb0723 docs(variants): define the build process (new variant) and rebuild process (build_all.sh)
- New variants/build_all.sh: rebuilds ALL variants from their json definitions
  in one go (loops over <definitions-dir>/*.json, calls build.php per variant,
  aggregates failures, exits non-zero on any failure) and prints the owner
  follow-up actions (reset each variant theme in the LS admin, flushassets,
  Ctrl+F5). Generic tooling — no client names — so it ships in the public repo.
- README.md: the variants workflow is now split into a 'Build process' (defining
  a NEW variant: json + assets in the private definitions repo, build.php,
  deploy + theme reset + flushassets) and a 'Rebuild process' (build_all.sh after
  a mother config.xml change or a definitions change). The preview section now
  documents the standing rules: variant preview must differ from the mother's,
  preview.svg is committed + synced publicly, added only at first creation and
  never overwritten.
- AGENTS.md propagation rule now points at build_all.sh.

Verified: bash -n clean; PHP_BIN=/usr/bin/php bash variants/build_all.sh variants
-> '2 built, 0 failed', rc=0, both variants' preview.svg untouched (md5 before =
after); export_public.sh exit 0 with build_all.sh in the zip.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 12:29:27 +01:00