1.4.0 • Published 5 years ago
@dudadev/duda-svg v1.4.0
duda-svg
Install
npm install @dudadev/duda-svgDevelopment
- Getting started:
$ git clone https://github.com/dudadev/duda-svg
$ npm install- See all existing SVGs:
$ npm startOr 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.svgCopy 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.