Static Site Generator for component library development
dumi is a static site generator designed for component library development. It is built to simplify the process of creating and managing documentation for component libraries.
To install dumi, you need to have Node.js and npm installed on your machine. Once you have them installed, you can follow these steps:
npm install dumi -g
mkdir my-component-library
cd my-component-library
npm init -y
npm install dumi --save-dev
.umirc.ts
and add the following configuration:export default {
title: 'My Component Library',
}
src/index.tsx
and add your component code in it.dumi dev
In summary, dumi is a static site generator that simplifies the process of managing and documenting component libraries. It provides features such as static site generation, online examples and documentation, and a badge to showcase library usage. By following the installation guide, users can easily set up dumi and start developing their own component libraries with ease.