Skip to content

Conversation

@christian-byrne
Copy link
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)

- 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
@socket-security
Copy link

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​tsx@​4.21.01001008187100
Addednpm/​typescript@​5.9.31001009010090

View full report

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