Provide a template for building a component library ecology based on
monorepo
Most of the current component library technical solutions adopt a single package method, for example:
├── template
├── bin
├── components
│ ├── button
│ └── input
├── site
├── utils
The above management method is simple, but when our component library ecology grows larger and materials such as sites, tools, cli, templates, and component-based creations continue to grow, the code and dependency management of the entire project will also become complicated and redundant. Remain.
Then for the above-mentioned multiple project
projects, monorepo
has become our choice.
The template solution provided by base-doc
was developed based on this background.
base-doc
uses rush
for project management, which is expected to include component library sites, component libraries, component library tools, component library command lines, component library templates, component library communities, component library material scenarios, etc. Front-end solutions.
- Install
pnpm
,rush
globally - Clone the project:
git clone https://github.com/koloer-blus/base-doc.git
- Enter the project
cd base-doc
- Execute
rush update
to install project dependencies