Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📚React组件库搭建指南

NotificationsYou must be signed in to change notification settings

worldzhao/react-ui-library-tutorial

Repository files navigation

🚀 在线预览

🚆 本地预览

git clone git@github.com:worldzhao/react-ui-library-tutorial.gitcd react-ui-library-tutorialpnpm installpnpm start

按顺序执行完命令后,即可在 localhost:3000 端口看到以下内容:

preview

概览

本系列文章主要包含以下内容:

  • 项目初始化: 组件库前期开发准备工作。eslint/commit lint/typescript等等;
  • 开发阶段: 使用dumi 进行开发调试以及文档编写;
  • 打包阶段: 输出~~umd~~/cjs/esm产物并支持按需加载;
  • 组件测试: 使用@testing-library/react及其相关生态进行组件测试;
  • 发布 npm: 编写脚本完成发布或直接使用np 发布;
  • 部署文档站点: 使用 Github Pages 以及 Github Actions 完成文档站点自动部署。

[8]ページ先頭

©2009-2025 Movatter.jp