Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/worldzhao/react-ui-library-tutorial
📚React组件库搭建指南
https://github.com/worldzhao/react-ui-library-tutorial
frontend react react-components react-tutorial tutorial tutorial-demos web
Last synced: 8 days ago
JSON representation
📚React组件库搭建指南
- Host: GitHub
- URL: https://github.com/worldzhao/react-ui-library-tutorial
- Owner: worldzhao
- Created: 2019-12-18T01:59:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T06:29:39.000Z (over 1 year ago)
- Last Synced: 2024-10-27T00:53:10.352Z (13 days ago)
- Topics: frontend, react, react-components, react-tutorial, tutorial, tutorial-demos, web
- Language: TypeScript
- Homepage: https://worldzhao.github.io/react-ui-library-tutorial/
- Size: 3.25 MB
- Stars: 482
- Watchers: 6
- Forks: 118
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - react-ui-library-tutorial
- awesome-react-cn - 📚React组件库搭建指南
README
## React 组件库搭建指南
- [React 组件库搭建指南(一):项目初始化](https://github.com/worldzhao/blog/issues/3)
- [React 组件库搭建指南(二):开发调试](https://github.com/worldzhao/blog/issues/4)
- [React 组件库搭建指南(三):编译打包](https://github.com/worldzhao/blog/issues/5)
- [React 组件库搭建指南(四):单元测试](https://github.com/worldzhao/blog/issues/6)
- [React 组件库搭建指南(五):标准化发布流程](https://github.com/worldzhao/blog/issues/7)[🚀 在线预览](https://worldzhao.github.io/react-ui-library-tutorial)
🚆 本地预览
```bash
git clone [email protected]:worldzhao/react-ui-library-tutorial.git
cd react-ui-library-tutorial
pnpm install
pnpm start
```按顺序执行完命令后,即可在 localhost:3000 端口看到以下内容:
![preview](https://raw.githubusercontent.com/worldzhao/blog/master/images/rc-lib-v1-1.jpg)
## 概览
本系列文章主要包含以下内容:
- 项目初始化: 组件库前期开发准备工作。`eslint`/`commit lint`/`typescript`等等;
- 开发阶段: 使用 [dumi](https://d.umijs.org/zh-CN) 进行开发调试以及文档编写;
- 打包阶段: 输出~~`umd`~~/`cjs`/`esm`产物并支持按需加载;
- 组件测试: 使用`@testing-library/react`及其相关生态进行组件测试;
- 发布 npm: 编写脚本完成发布或直接使用 [np](https://www.npmjs.com/package/np) 发布;
- 部署文档站点: 使用 Github Pages 以及 Github Actions 完成文档站点自动部署。