Updating Templates
Template generation lives under templates/scripts/.
Main Scripts
auto-template.mjs: interactive runner for template scriptscommunity-scripts.mjs: crawls community-scripts source datagenerate-templates.mjs: generates data-only TemplateDocument (content-template) JSON andtemplates/index.json
Typical Workflow
From repository root:
bash
cd templates/scripts
node auto-template.mjsOr run scripts directly:
bash
node community-scripts.mjs
node generate-templates.mjsOutput Locations
- generated templates:
templates/community-scripts/ - template index:
templates/index.json - reports/temp data:
templates/scripts/*-tempand logs
Generated community-scripts templates only contain content data (payload.content, including iconUrl) and no styling payload.
Recommendation
After generation:
- inspect diffs
- validate representative templates in UI
- commit updated templates/index together