The src/svg directory is the single source of truth for svgs. They should not already be optimized and can be the original svg export straight out of an svg editor. A build step before releasing will optimize the source svgs (remove comments, reduce the size, etc) and ensure they'll work within ion-icon.
After an svg has been updated, added or deleted from the src/svg directory, run:
npm run buildThe build command will optimize all of the icons and generate the files to be distributed. After the build command, all of the optimized svgs are saved in dist/ionicons/svg. Additionally the dist directory contains the distribution files for the ion-icon web component.
After a build, a new www/cheatsheet.html file will be created. This version uses svg symbols rather than ion-icon.
To see the ion-icon component in action, run:
npm startThe release script will ask what version to use. After the script completes, double check the www/cheatsheet.html to ensure everything is good to go.
Next, update CHANGELOG.md, then commit and push your changes Github.
npm run releaseTriple check the version number is correct, and choose which tag this should be released as. If it's a pre-release, it should be dev.