Mini apps UI Kit repo
# Install dependencies
pnpm install# Run Storybook in dev mode
pnpm dev:sb# Run Next.js example app in dev mode without hot reload
pnpm dev# Build components library for production
pnpm build# Build Storybook for production
pnpm build:sb# Preview built Storybook in production mode (after pnpm build:storybook)
pnpm preview:sbpackages/@mini-apps-ui-kit-react: React components librarypackages/@mini-apps-ui-kit-react/src/components: React components, make sure every component has it's own index.ts filepackages/@mini-apps-ui-kit-react/stories: Storybook stories
To add new icons to the UI kit, follow these steps:
- Export the icons from Figma using the World Icons Exporter plugin
- Move the export folder into
/source-icons - Run the icon preparation script:
Or directly:
pnpm run prepare-icons
tsx scripts/prepare-icons.ts
This will process the exported icons and make them available in the component library.
We use changesets to manage our versioning and changelogs. To contribute to this repository, please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/your-feature) - Make your changes
- Run
pnpm changesetto create a changeset that describes your changes- This will prompt you to:
- Select which packages you want to release
- Choose the type of version bump (major, minor, patch)
- Provide a summary of the changes
- This step creates temporary files containing all the specified information
- To save these temporary changes in
CHANGELOG.mdandpackage.json, runpnpm changeset version
- This will prompt you to:
- Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/your-feature) - Open a Pull Request
Make sure to:
- Follow the existing code style
- Update documentation as needed
- Add tests if applicable
- Include a changeset with your changes
Version management is handled by the repository's CODEOWNERS. They are responsible for:
- Reviewing and approving version bumps
- Managing the release process
- Ensuring changesets are properly created and maintained
- Publishing new versions of the packages
Only CODEOWNERS have the authority to merge version-related changes and execute releases.