Files
bortstack-forge/docs/specifications/template-contract.md
T

8 lines
1.4 KiB
Markdown

# Template contract
A template descriptor identifies template ID and version, supported project type, configuration variables, generation procedure, dependencies, development commands, validation/test commands, optional capabilities, platform requirements, and initial context behavior. `templates/flask-react/template.json` is the first implemented descriptor; `templates/flask-react/generate.py` is its standalone generation API. F005 will orchestrate selection and project profiles across templates. Generated projects have no Forge runtime dependency.
The migration source is the existing `flask-react-auth-base` repository at the commit recorded in the descriptor. It remains external and unchanged. Forge's generator accepts a project name, new destination, and optional `--git-init`; it refuses existing destinations and paths inside Forge. Email and hosting foundations are optional per FORGE-009, with no active GitHub workflow or automatic deployment in generated projects.
FORGE-F008 copies the canonical testing toolkit into generated projects. The generated `.bortstack/testing.json` owns Compose manual-development settings, local account provisioning, automated suite commands and optional approved `act` jobs. `testtask.sh` is for manual environments; `testrunner.sh` is for automated suites. The package contract and platform requirements are in `toolkits/testing/README.md`.