https://github.com/joduplessis/react-icon-generate
Bash script toolkit for generating React components from SVG files (in bulk).
https://github.com/joduplessis/react-icon-generate
bash javascript react svg
Last synced: 27 days ago
JSON representation
Bash script toolkit for generating React components from SVG files (in bulk).
- Host: GitHub
- URL: https://github.com/joduplessis/react-icon-generate
- Owner: joduplessis
- Created: 2019-08-02T10:02:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T08:38:07.000Z (over 5 years ago)
- Last Synced: 2024-12-26T00:23:07.384Z (6 months ago)
- Topics: bash, javascript, react, svg
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Icon Generation toolkit
Script toolkit to convert SVG files to React components in bulk. All of this **SVGR** can do out of the box - but this is the workflow that I've used to speed things up.
## How to use
- `npm i -g svgr/[email protected]` or `npx i svgr/[email protected]`
- Go and download the excellent [Remix Icon](https://remixicon.com/) icon set
- Unzip the folder containing the SVG files (and sub folders) to `remix`
- Run `./convert ./remix ./components`If you want to rename the generated files in bulk, I published a gist [here](https://gist.github.com/joduplessis/72cbd33619e8596aae7fc9efdaf13b25).