@dudadev/duda-svg
v1.4.0
Published
SVG Generator and Loader
Downloads
17
Maintainers
Keywords
Readme
duda-svg
Install
npm install @dudadev/duda-svg
Development
- Getting started:
$ git clone https://github.com/dudadev/duda-svg
$ npm install
- See all existing SVGs:
$ npm start
Or checkout Storybook.
Add a new SVG
- Create a new file in the appropriate folder:
// For editor:
$ touch src/editor/svgs/my-new-svg.svg
// For runtime:
$ touch src/runtime/svgs/my-new-svg.svg
Copy the SVG content into the new file, follow the guidelines here
Generate the new SVG Sprite and check out the result:
$ npm run generate
- Publish the changes:
$ npm run publish-svg
- Commit and push all generated files:
$ git add .
$ git commit -m "feat: add my-svg"
$ git push
- Update the version number in your repository.