Docflow UI Component Library
Develop
We use pnpm v8 to manage dependencies.
Start the Storybook for development:
pnpm i
pnpm dev
Publish
It's going to publish automatically when you merge something to main
:
- If the string "BREAKING CHANGE" is found anywhere in any of the commit messages or descriptions the major version will be incremented.
- If a commit message begins with the string "feat" then the minor version will be increased. This works for most common commit metadata for feature additions: "feat: new API" and "feature: new API".
- All other changes will increment the patch version.
If you don't want to trigger a release, put a [skip release]
anywhere in your commit message (preferably, the second line).
Add new icons
- Go to Figma and select all 4 weight variants of the icon you want to export
- In the Export settings, specify the suffix of an underscore and the camel-cased filename of the icon you're exporting (e.g. the suffix should be
_arrowRight
for the icon called arrow.right
) - If you're exporting multiple icons, repeat steps 1 and 2 for each icon
- Place the exported files in the
resources/icons
folder - Run
node scripts/1-adaptIcons.mjs
to rename the icons automatically - Run
node scripts/2-cleanIcons.mjs
to clean up the icons and set internal colors correctly - Commit!