Skip to content

sudeep2003/astro-iconset

Repository files navigation

Astro Iconset

npm version npm downloads license

Astro integration for SVG icons: local files, Iconify collections. Icons are optimized at build time, repeated uses can share a sprite, and the package ships no extra runtime to the browser.

Install in an Astro project

pnpm add astro-iconset

Full setup, configuration, and API details are in the package README.


This repository

A pnpm workspace with the published npm package, a manual test app, and documentation site sources.

Path Role
packages/astro-iconset npm package astro-iconset
playground/ Astro app used to exercise the integration (playground README)
site/ Starlight docs site (private package in this repo)

Repository: github.com/sudeep2003/astro-iconset · Issues: github.com/sudeep2003/astro-iconset/issues

Developing locally

Requires pnpm (version pinned in root package.json).

pnpm install
pnpm dev

Runs dev in every workspace package that defines it (integration build watch, playground, site, etc.). To run only the playground or site:

pnpm --filter playground dev
pnpm --filter site dev

Build the package and site together (as in root scripts.build):

pnpm build
npm run build

The root script runs filtered builds for astro-iconset and site; it invokes pnpm internally, so pnpm must be available on your PATH.

Formatting:

pnpm format
pnpm lint

License

MIT — see the repository files and packages/astro-iconset/package.json.