@iconslib/svelte
v0.3.0
Published
Open source icons for your next Svelte project.
Downloads
32
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/svelte
Developing
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 package
This will download and prepare all the icon packs.
How to add a new pack
- Add a corresponding folder into
packs
folder - Add a
prepare.mjs
file into the newly created directory - Use other
prepare.mjs
files as an inspiration to create the script for the pack you are going to add - Add new script to
scripts/prepare.mjs
file - 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