Templates, schemas, and acceptance tests used across the Baldrick toolchain.
- Templates: Handlebars scaffolds for TypeScript, Dart, and Go (
template/*). - Schemas: Zod-based generators that emit JSON Schemas (
reserve-schema/*). - Tests: YAML-driven acceptance tests using baldrick-pest (
pest-spec/*). - Data: Language presets and broth snippets consumed by templates (
data/*). - Workflows: Declarative tasks orchestrated by baldrick-broth (
baldrick-broth.yaml).
- Run acceptance tests (TS + Dart):
npx baldrick-broth@latest test pest
- Generate all JSON Schemas defined here:
npx baldrick-broth@latest generate schema- Note: the TypeScript broth schema generator expects dev deps
zod@3.24.xandzod-to-json-schema@3.x. If needed:npm i -D zod@3.24.1 zod-to-json-schema@3.24.6and thennpx zx reserve-schema/typescript-broth-schema.mjs.
- Render a README from a broth model:
npx baldrick-whisker@latest render baldrick-broth.yaml github:flarebyte:baldrick-reserve:template/ts/readme.hbs README.md
template/ts,template/dart,template/go: README, maintenance, technical design, license, agents, etc.reserve-schema/:*-schema.mjs→*.schema.json(zod + zod-to-json-schema).pest-spec/:*.pest.yamlspecs withfixtures/andsnapshots/.data/: language presets (e.g., TS Biome config, workflow templates).script/: helper zx scripts (scaffolding, dependencies, reporting).
- Please read
AGENTS.md(contributor guide). - See analysis docs for context and decisions:
CODE_ANALYSIS.mdworkflow_code_analysis.mdworkflow_drift_improvements.md
Reference these templates directly in your broth with baldrick-whisker.
- Generate a README (TypeScript):
npx baldrick-whisker@latest render baldrick-broth.yaml github:flarebyte:baldrick-reserve:template/ts/readme.hbs README.md
- Generate docs (Dart/Go):
npx baldrick-whisker@latest render baldrick-broth.yaml github:flarebyte:baldrick-reserve:template/dart/readme.hbs README.mdnpx baldrick-whisker@latest render baldrick-broth.yaml github:flarebyte:baldrick-reserve:template/go/readme.hbs README.md
- title: Create README.md\n run: npx baldrick-whisker@latest render baldrick-broth.yaml\n github:flarebyte:baldrick-reserve:template/ts/readme.hbs\n README.md
- Node.js 22+ is recommended for local scripts and CI parity.
- The CLIs used here are fetched via
npx:baldrick-broth,baldrick-whisker,baldrick-pest, andzx.
MIT — see LICENSE.