This repository provides a template for creating a React component library using Rollup, TypeScript, Less, and Storybook. It allows you to easily build, document, and showcase your components.
- Rollup: Efficiently bundle your components for easy distribution.
- TypeScript: Develop with type safety and modern JavaScript features.
- Less: Utilize Less for styling your components.
- Storybook: Document and visualize your components in an isolated environment.
-
Ensure you have Node.js installed on your machine.
-
You can have Yarn package manager installed. If you haven't installed it yet, you can do so using npm:
npm install --global yarn
-
Clone the repository:
git clone https://github.com/jobsofferings/basic-components.git cd basic-components
-
Install the dependencies:
yarn
To start Storybook and view your components:
yarn sb
After running the command, you can access Storybook at http://localhost:6006/.