5

前端大佬请进,搭建内部的组件库有什么工具吗?

 2 years ago
source link: https://www.v2ex.com/t/809807
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

前端大佬请进,搭建内部的组件库有什么工具吗?

  firhome · 1 天前 · 1555 次点击
各位前端大佬,

公司内部的组件 /样式 (除了第三方外,业务整理下来的)。

请问有什么管理工具可以搭建吗,方便展示? 还是说手动写纯静态页面,批量生成?
13 条回复    2021-10-23 13:59:06 +08:00

johnnyNgjohnnyNg   1 天前

简单点就 storybook

leelz

leelz   1 天前

storybook
umi-father
vuepress

wwk

wwk   1 天前

docsify 挺好用

shilianmlxg

shilianmlxg   1 天前 via iPhone

小公司 请问下能看下 什么项目才需要自己封装组件样式成库。没接触到这种层次。

xarthur

xarthur   1 天前 via iPhone

Storybook 用于开发调试和文档。
组件开发可以上 styled-component

JerryCha

JerryCha   1 天前

storybook 为此而生

ianva

ianva   1 天前

storybook 即可,很小的工作量就能把组件描述清楚,另外不一定要针对组件库,我们应用在所有项目当中

项目都是先开发组件,每个组件必须有相应的 story 展示,所以我们组件的文件夹里一般会包含 story,样式,类型,默认配置,组件代码,非常清晰也易于维护和作为组件完成的交付展示。

luoyelusheng

luoyelusheng   1 天前

docz story book dumi
支持编写的组件库类型 all ✅ all ✅ React Only
轻量级 / 开发者友好 ❌ ❌ ✅
文档内嵌在组件目录中 ❌ ✅ ✅
将引入模块写在代码示例中 ❌ ❌ ✅
自动生成组件库 API ❌ ❌ ✅
支持除了组件库文档的其他类型文档的编写 ✅ ✅ ❌

lee88688

lee88688   1 天前 via Android

这种纯静态文档内部怎么托管呢,没有像 github pages 这样方便的托管服务呢?

xingyuc

xingyuc   18 小时 6 分钟前   ❤️ 1

我们自建的 npm 服务器,文档没有,靠口口相传

karott7

karott7   17 小时 39 分钟前

@shilianmlxg 项目并不需要多大,当公司想要定制化网站而开源项目又不满足的时候就需要自己开发组件。开发这样的组件库肯定不是一步到位的,需要 demo 展示,这就需要用到 storybook 了。

shilianmlxg

shilianmlxg   15 小时 42 分钟前 via iPhone

谢谢大佬。能有幸看下库的图片吗。是组件交互很复杂的那种吗

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK