Create your own customizable SVG-based React icon package with create-react-icon-package
. This powerful tool simplifies the process of generating, organizing, and distributing your custom icon set for React applications.
- Features
- Prerequisites
- Quick Start
- Customizing Your Icon Set
- Automatic Versioning and Publishing
- Contributing
- License
- Easy setup and configuration
- SVG to React component conversion
- Automatic versioning with Semantic Release
- GitHub Actions integration for CI/CD
- npm publishing automation
- Basic understanding of React
- Familiarity with npm and SVG icons
- Node.js and npm installed on your system
-
Clone the repository:
git clone https://github.com/halilatilla/create-react-icon-package.git my-icon-package
-
Navigate to the project folder:
cd my-icon-package
-
Install dependencies:
npm install
-
Start customizing your icon package!
- Place your SVG icons in the
icons
folder. - Run the build command to generate React components:
npm run build
- Find your compiled components in the
dist
directory.
This package uses Semantic Release and GitHub Actions for automatic versioning and publishing to npm.
- Create an npm account and generate an access token with "Read and Publish" permissions.
- In your GitHub repository, go to Settings > Secrets.
- Add the
NPM_TOKEN
secret with your npm access token. - The
GITHUB_TOKEN
is automatically provided by GitHub Actions.
- Each push to the "main" branch triggers the versioning and publishing process.
- Your package will be automatically published to npm with an appropriate version number based on your commit messages.
We welcome contributions! Please feel free to submit issues and pull requests on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.