@iconslib/svelte
v0.3.0
Published
Open source icons for your next Svelte project.
Maintainers
Readme
@iconslib/svelte
Open source icons for your next Svelte project.
Visit iconslib.com for more info.
Installing
To install the package please run:
npm install @iconslib/svelte
# or for yarn
yarn add @iconslib/svelte
# or for pnpm
pnpm install @iconslib/svelteDeveloping
Once you've forked this project and installed dependencies with npm install (or pnpm install or yarn), run npm run prepare to download and prepare icon packs.
Everything inside src/lib is part of the library.
Building
To build this library run:
npm run packageThis will download and prepare all the icon packs.
How to add a new pack
- Add a corresponding folder into
packsfolder - Add a
prepare.mjsfile into the newly created directory - Use other
prepare.mjsfiles as an inspiration to create the script for the pack you are going to add - Add new script to
scripts/prepare.mjsfile - Run your script via
npm run prepare <new-pack-slug> - Add new exports to
package.json(check other exports for an example) - Test if icons import and display normally
- Build
- Commit
- PR
