@beweco/aurora-ui
v0.6.57
Published
Bewe Aurora UI Component Library
Readme
@beweco/aurora-ui
Bewe Aurora UI Component Library - A modern, lightweight, and customizable React component library.
Overview
@beweco/aurora-ui is a React component library designed to provide a consistent and beautiful user interface for Bewe applications. Built with TypeScript for type safety and modern development practices, it uses Storybook as its primary development and visualization environment.
Installation
bun install @beweco/aurora-uiQuick Start
To use the components, you need to wrap your application with the ThemeProvider .
import { ThemeProvider } from '@beweco/aurora-ui';
import { Button } from '@beweco/aurora-ui';
function App() {
return (
<ThemeProvider>
<Button color="primary">
Hello Aurora UI!
</Button>
</ThemeProvider>
);
}Development
Prerequisites
- Bun (v1.0 or higher)
Setup
- Clone the repository:
git clone <repository-url> - Install dependencies:
bun install
Development with Storybook
This project uses Storybook for component development and visualization. Storybook provides an isolated environment to build, view, and test components in real-time.
To start the Storybook server, run:
bun run storybookThis will open the Storybook interface in your browser, where you can browse all the available components, see their different states (variants, sizes, etc.), and interact with them.
Available Scripts
bun run storybook- Starts the Storybook development server.bun run build- Builds the library for production.bun run dev- Builds the library and watches for changes.bun run check- Runs Biome to check for lint issues and apply safe fixes.bun run format- Formats the entire codebase using Biome.bun run build:storybook- Builds a static version of the Storybook site.
Publishing
Preparing a New Release
Update version in
package.json:bun version patch # for bug fixes (0.0.x) bun version minor # for new features (0.x.0) bun version major # for breaking changes (x.0.0)Build the library:
bun run build
Publishing to NPM Registry
Login to npm (if not already logged in):
npm loginPublish the package:
npm publish --access publicNote: Although the project uses
bun, publishing is typically done vianpm.
Publishing a Beta Version
For testing purposes, you can publish a beta version:
Tag the version as beta in
package.json:bun version prerelease --preid=betaPublish with the beta tag:
npm publish --tag beta --access public
Users can then install the beta version using:
bun install @beweco/aurora-ui@betaContributing
We welcome contributions! Please read our contributing guidelines before submitting pull requests.
Development Workflow
- Fork the repository.
- Create a feature branch (
git checkout -b feature/my-new-feature). - Make your changes in the
srcdirectory. Create or update stories in thestoriesdirectory. - Use
bun run storybookto visualize your changes. - Submit a pull request.
License
MIT License.
Support
For support, please open an issue in the repository or contact the Bewe team.
