@lanun/react-kit
v0.0.3
Published
React toolkit for building React apps
Readme
@lanun/react-kit
A collection of reusable React UI components built with Vite and Rollup.
Table of Contents
Installation
To add @lanun/react-kit to your project, install it via npm (or your preferred package manager):
npm install @lanun/react-kit
or
yarn add @lanun/react-kit
or
pnpm add @lanun/react-kitDevelopment
Before you begin development, make sure you have the following installed:
Then, clone the repository and install the dependencies:
# clone the repository
git clone https://github.com/syfqpie/lanun
cd lanun
# install pre-commit hook
pre-commit install --hook-type commit-msg
# install dependencies
pnpm installRunning the Development Server
Start the local development server:
pnpm devStart the local documentation development server:
pnpm dev:docsGenerating Components
To streamline the creation of new component files, use the provided generate script:
Create a new component:
pnpm run generate component <ComponentName>
Unit Testing
Run unit tests using Vitest:
Watch mode (re-run tests on changes):
pnpm testSingle run (without watch mode):
pnpm test run
Building
To build the component library
pnpm buildTo build the documentation
pnpm build:docs