world-id-integrations-uikit v1.2.0
WorldID Integrations UIKit
This is a UI Kit for WorldID Integrations. It's built with React and TypeScript, and uses Storybook for component development and documentation. The UI Kit includes several components, each with its own Storybook story and tests.
Components
Setup
To set up the project, run the following command:
pnpm installDevelopment
To start the development server (Storybook), run:
pnpm startThis will start Storybook on localhost:6006. You can view and interact with the components in isolation here.
Linting and Code Formatting
To lint the code and check for formatting errors, run:
pnpm lintTo automatically fix linting and formatting errors, run:
pnpm lint:fixTesting
To run the tests, use:
pnpm testPublishing
Before publishing, make sure to run the release script:
pnpm releaseThis will lint the code, build the project, and publish it to npm.
Storybook
Storybook is a tool for developing and documenting components in isolation. Each component has a corresponding story file (e.g., button.stories.tsx for the Button component) where you can define different states or variations of the component.
To build a static version of the Storybook site, run:
pnpm run storybook:buildTo deploy the Storybook site to GitHub Pages, run:
pnpm run storybook:deployFor more information on how to use Storybook, refer to the official Storybook documentation.