Adding an icon
- Add the SVG file to the appropriate folder
- Add a
createIconic
component to the index.ts
in that folder for that icon (iconName should be lowercase) - Bump the version in package.json
- run
nvm use
- run
yarn install
if not yet - run
yarn test -u
to update test fixtures - Open a PR
- After merge, release
Updating an icon
- Update SVG file with new data
- Open a PR
- Release, which will update the sprite.svg (no version bump necessary)
It will take up to 24 hours for new icon to be seen due to cache
Releasing
PreReq: don't forget to bump the version in package.json if you haven't done so.
Run github action (publish)[https://github.com/dynamic-labs/iconic/actions/workflows/publish.yml] to publish new version and deploy sprite svg