Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds CLI support using jsrepo. jsrepo is a framework agnostic code distribution system like shadcn. It automatically builds your code into a registry that can be distributed from most git providers as well as your own site or even from jsrepo.com.
With the addition of jsrepo users are able to add svgs via the CLI with the following commands:
Current the way this works is the
build:registryscript will run before you build your app to ensure that the icon registry is included instatic/r. This means it will always be up to date with the latest icons just like the site.Another project using this approach in production is https://www.reactbits.dev/.
Thanks for taking a look!
Extended Description
This PR probably still needs a bit of work (like a copy button for the command on the site) or maybe building things so they show up by their proper name but it's worth showing this now just to see if it's something even worth putting the time into.
With enough time you could also make it so you could distribute different framework specific versions of each icon maybe that could look like
jsrepo add svelte/adobe react/adobe vue/adobeor something. If you don't want users to have to deal with the URL jsrepo.com is also an option but for this you would need to use changesets or something to version the registry like npm. That would make the command look something likejsrepo add @svgl/svelte/icons/adobe.