Skip to content

refactor(svgs): extract embedded SVG strings to individual asset files#40

Merged
evirunurm merged 1 commit into
mainfrom
refactor/extract-svgs-to-asset-files
Mar 19, 2026
Merged

refactor(svgs): extract embedded SVG strings to individual asset files#40
evirunurm merged 1 commit into
mainfrom
refactor/extract-svgs-to-asset-files

Conversation

@evirunurm
Copy link
Copy Markdown
Owner

@evirunurm evirunurm commented Mar 19, 2026

Summary

  • Extracts nine SVG fragments from scripts/utils/svgs.ts into individual files under scripts/assets/svgs/ with snake_case names (e.g. pengpenguin.svg, githubCatgithub_cat.svg, icons[0-3]icon_followers.svg etc.)
  • Updates svgs.ts to load each asset via fs.readFileSync at module load time — exported API is unchanged so no consumer updates needed
  • Closes Phase 1: Extract SVG strings into individual .svg files #36

Test plan

  • npm run typecheck passes with no errors
  • All 18 existing tests pass (npm test)
  • Verify rendered SVG cards look identical to before (stat card, lang percent, lang pie — dark and white variants)

🤖 Generated with Claude Code

Move nine SVG fragments from scripts/utils/svgs.ts into separate files
under scripts/assets/svgs/ with snake_case names. Update svgs.ts to
load them via fs.readFileSync at module load time. Closes #36.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-stats-uvqq Ready Ready Preview, Comment Mar 19, 2026 11:53pm

@evirunurm evirunurm self-assigned this Mar 19, 2026
@evirunurm evirunurm merged commit 5ac42cb into main Mar 19, 2026
3 checks passed
@evirunurm evirunurm deleted the refactor/extract-svgs-to-asset-files branch March 19, 2026 23:55
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.

Phase 1: Extract SVG strings into individual .svg files

1 participant