Skip to content

wiyco/svgo-plugins

Repository files navigation

svgo-plugins

SVGO Plugin Playground

CI status Playground status npm version Bundle size License
Coverage Code to test ratio Node.js version pnpm version TypeScript version

A workspace for SVGO plugins aimed at SVG-to-React workflows.

Package

See the package README for the public API and usage examples.

Workspace

.
├─ scripts/
├─ packages/
│  └─ svgo-plugin-hoist-stroke-width/
│     ├─ src/
│     └─ __tests__/
└─ apps/
   └─ playground/
      ├─ index.html
      ├─ svgo-plugin-hoist-stroke-width/
      │  └─ index.html
      ├─ src/
      │  ├─ entries/
      │  ├─ core/
      │  ├─ landing/
      │  └─ playgrounds/
      │     └─ svgo-plugin-hoist-stroke-width/
      └─ public/

apps/playground is a single Vite app. Each package playground lives under src/playgrounds/<slug>, while the published GitHub Pages URL stays slug-based at /<slug>/ via a dedicated nested index.html.

Tooling

Type-checking runs on TypeScript 7 beta through tsgo from @typescript/native-preview. Each workspace app/package uses typecheck for tsgo and typecheck:tsc as the TypeScript 6 fallback. Build tooling still keeps typescript 6.x installed side-by-side because the stable TypeScript 7 programmatic API is not available yet.

Packages

 
 
 

Contributors