If you have found a bug, please create an issue on GitHub.
Please include the following:
- A concise description of the bug.
- Version of Iconify Tools, Node.js
- Is possible, reduced test case. It can be a small piece of code or link to a repository.
- Any other information that you think might help fix that bug.
This repository uses pnpm to manage dependencies and workspaces.
It is recommended that you use @antfu/ni, then you don't need to worry if project you are working on uses npm, pnpm, yarn or something else: all commands will be identical regardless of package manager.
There are two main branches:
mainthat contains latest stable code.nextthat contains development code.
If you want to create a pull request, base your new branch off next branch and create a pull request for next branch.
If you are having issues with next branch, using main branch is also fine, though next is preferred.
Clone repository, run ni to install all dependencies.
This repository contains several packages:
@iconify/toolsdirectory contains main package.@iconify-demodirectory contains various packages used for demo.
For most use cases, everything you need is in directory @iconify/tools:
- Source code is in sub-directory
src. - Unit tests are in directory
tests.
To build Iconify Tools, run nr build.
To test code, run nr test. Make sure you build package before testing.
You can run these commands from either root directory or from @iconify/tools sub-directory. If you run them from root directory, it will be ran for all packages. If you run them from @iconify/tools sub-directory, it will be ran only for Iconify Tools.
To create a pull request, please following these steps:
- Fork this repository.
- In your forked repository, create a new branch based on
nextbranch, such asgit checkout -b dev/my-fix next. - Install dependencies:
ni. - Update code.
- Build it:
nr build. - Test it:
nr test. - Commit changes:
git add -A,git commit -m "chore: short description"(change commit message). - Push changes:
git push origin dev/my-fix(change branch name). - On GitHub, send a pull request from your branch to
nextbranch.
If you have never contributed to a project before, do not worry about making mistakes. You can ask for help in an issue on GitHub or on Iconify Discord.