Skip to content

Template Site: Sync script#495

Closed
christian-byrne wants to merge 5 commits intomainfrom
template-site/sync-script
Closed

Template Site: Sync script#495
christian-byrne wants to merge 5 commits intomainfrom
template-site/sync-script

Conversation

@christian-byrne
Copy link
Copy Markdown
Contributor

Summary

Script to sync templates from templates/ directory to Astro content collection.

Added

  • scripts/sync-templates.ts - syncs top 50 templates by usage
  • Copies thumbnails to public/thumbnails/
  • Generates JSON content files for Astro

Usage

cd site && npm run sync

Template Site PRs (merge in order)

  • PR 1: astro-pages ✓
  • PR 2 of 5 ← this one
  • PR 3: ai-generation
  • PR 4: preview-gen
  • PR 5: cicd

⚠️ Merge after PR #494 (astro-pages)

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jan 20, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​types/​node@​25.2.01001008196100
Addednpm/​tsx@​4.21.01001008185100
Addednpm/​typescript@​5.9.31001009010090

View full report

- Create site/ directory structure with scripts/, src/content/templates/, public/thumbnails/
- Add sync-templates.ts that reads templates/index.json and syncs top 50 by usage
- For each template, creates JSON with placeholder AI fields (extendedDescription, howToUse, metaDescription, suggestedUseCases)
- Copies thumbnail files ({name}-*.webp) to public/thumbnails/
- Add package.json with tsx for running TypeScript
- Add tsconfig.json for TypeScript support
- Add .gitignore for generated content directories
@christian-byrne christian-byrne force-pushed the template-site/sync-script branch from e7765eb to 67c4890 Compare February 4, 2026 20:35
@christian-byrne
Copy link
Copy Markdown
Contributor Author

Closing this PR as all changes have already been merged via #494 (Template Site: Astro pages & components). The docs, sync script, and bundles.json fix are all included in that PR.

@christian-byrne christian-byrne deleted the template-site/sync-script branch February 4, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants