@beisen/storybook
<p align="center"> <img alt="Shield" src="http://lc-cj3ctxdw.cn-n1.lcfile.com/baf8019f3a541823d42a.png" height="400px" with="700px" /> </p>
Last updated 5 months ago by beisencorp .
MIT · Original npm · Tarball · package.json
$ cnpm install @beisen/storybook 
SYNC missed versions from official npm registry.

Shield

A tool for debug and publish UI components.

About

在前端开发领域,业务开发普遍组件化。这种模式下,对源码的维护就有很大的挑战。目前有两种维护方式 MONOMULTI。在维护大量组件时,使用MONO既可以保证组件的独立性,又可以减少维护成本。

目前针对于MONO已经有了不少的管理工具,Lerna 是一个不错的管理工具。但,对于前端组件开发领域,Lerna的配置和使用有些繁琐,也不利于集成进自己 CI 任务中,为了在 开发集成 时中更方便的管理组件 knight-shield 便由此产生

Getting Started

Installing

$ npm install @beisen/storybook-lib --save-dev

Usage

$ npx sbl storybook start # 组件调试
$ npx sbl publish npm # 发布组件
$ npx sbl build lib # 编译lib

Monorepo

使用 sbl storybook 功能可以很方便的调试组件。但,在某些场景下往往需要和项目中其他的代码进行联合调试。在这种场景下可以结合 yarn,使用其提供的 workspaces 功能

Project Structure

monorepo

在 components/ 中的组件都是MONO的维护方式,是独立的模块。在复杂项目中可能会存在MONO中模块互相依赖的情况,使用yarn的 link: 协议创建依赖

{
  "dependencies": {
    "button": "link:../button"
  }
}

项目中的非MONO模块代码如需引用MONO中的模块,可直接使用 ./src/**/js 方式引用即可,如上图所示 pages 对 button-group 的引用

注意:整个项目是一个大版本,项目的维护者完全不要关心子模块的版本。因屏蔽子模块的版本号,减少了开始者在维护子模块互相依赖时更新版本号带来的成本

CI

对于项目开发来说,无论是MONO模块还是非MONO模块,只需要修改源代码即可。执行 git push 之后,在执行jenkins任务时,添加 npx sbl publish npm --independent --only-updated 实现增量发布MONO中的模块,子模块的版本使用的是项目的版本号

Dependencies

StorybookLearn 已助实现了部分功能。基于Storybook之上封装了一系列配件和功能实现了调试功能。基于了Lerna的内部模块(@lerna/package, @lerna/package-graph, @lerna/output)实现了组件发布功能

Lerna Storybook

Developers

zhangyue liuhuijuan liumingyuan

License

MIT

Current Tags

  • 1.1.2-rc.6                                ...           latest (5 months ago)

160 Versions

  • 1.1.2-rc.6                                ...           5 months ago
  • 1.1.2-rc.5                                ...           5 months ago
  • 1.1.2-rc.2                                ...           6 months ago
  • 1.1.2-rc.3                                ...           6 months ago
  • 1.1.2-rc.1                                ...           6 months ago
  • 1.1.2                                ...           6 months ago
  • 1.1.1-rc.6                                ...           8 months ago
  • 1.1.1-rc.5                                ...           8 months ago
  • 1.1.1-rc.3                                ...           8 months ago
  • 1.1.1-rc.2                                ...           8 months ago
  • 1.1.1-rc.1                                ...           9 months ago
  • 1.1.1                                ...           9 months ago
  • 1.1.0-rc.5                                ...           9 months ago
  • 1.1.0-rc.4                                ...           9 months ago
  • 1.1.0-rc.3                                ...           9 months ago
  • 1.1.0-rc.2                                ...           9 months ago
  • 1.1.0-rc.1                                ...           9 months ago
  • 1.0.49-rc.1                                ...           9 months ago
  • 1.0.49                                ...           9 months ago
  • 1.0.48-rc.1                                ...           9 months ago
  • 1.0.48                                ...           9 months ago
  • 1.0.47-rc.2                                ...           9 months ago
  • 1.0.47-rc.1                                ...           9 months ago
  • 1.0.45-rc.3                                ...           9 months ago
  • 1.0.45-rc.2                                ...           9 months ago
  • 1.0.45-rc.1                                ...           9 months ago
  • 1.0.45                                ...           9 months ago
  • 1.0.43                                ...           9 months ago
  • 1.0.42-rc.8                                ...           9 months ago
  • 1.0.42-rc.7                                ...           9 months ago
  • 1.0.42-rc.6                                ...           9 months ago
  • 1.0.42-rc.5                                ...           9 months ago
  • 1.0.42-rc.4                                ...           9 months ago
  • 1.0.42-rc.3                                ...           9 months ago
  • 1.0.42-rc.2                                ...           9 months ago
  • 1.0.42-rc.1                                ...           10 months ago
  • 1.0.41-rc.10                                ...           10 months ago
  • 1.0.41-rc.9                                ...           10 months ago
  • 1.0.41-rc.8                                ...           10 months ago
  • 1.0.41-rc.7                                ...           10 months ago
  • 1.0.41-rc.6                                ...           10 months ago
  • 1.0.41-rc.5                                ...           10 months ago
  • 1.0.41-rc.4                                ...           10 months ago
  • 1.0.41-rc.3                                ...           10 months ago
  • 1.0.41-rc.2                                ...           10 months ago
  • 1.0.41-rc.1                                ...           10 months ago
  • 1.0.40                                ...           a year ago
  • 1.0.39-rc.15                                ...           a year ago
  • 1.0.39-rc.14                                ...           a year ago
  • 1.0.39-rc.12                                ...           a year ago
  • 1.0.39-rc.11                                ...           a year ago
  • 1.0.39-rc.10                                ...           a year ago
  • 1.0.39-rc.9                                ...           a year ago
  • 1.0.39-rc.8                                ...           a year ago
  • 1.0.39-rc.7                                ...           a year ago
  • 1.0.39-rc.6                                ...           a year ago
  • 1.0.39-rc.4                                ...           a year ago
  • 1.0.39-rc.3                                ...           a year ago
  • 1.0.39-rc.2                                ...           a year ago
  • 1.0.39-rc.1                                ...           a year ago
  • 1.0.39                                ...           a year ago
  • 1.0.38-rc.1                                ...           a year ago
  • 1.0.37-rc.4                                ...           a year ago
  • 1.0.37-rc.3                                ...           a year ago
  • 1.0.37-rc.2                                ...           a year ago
  • 1.0.37-rc.1                                ...           a year ago
  • 1.0.37                                ...           a year ago
  • 1.0.35-rc.2                                ...           a year ago
  • 1.0.35-rc.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.36-rc.10                                ...           a year ago
  • 1.0.36-rc.9                                ...           a year ago
  • 1.0.36-rc.8                                ...           a year ago
  • 1.0.36-rc.7                                ...           a year ago
  • 1.0.36-rc.6                                ...           a year ago
  • 1.0.36-rc.5                                ...           a year ago
  • 1.0.36-rc.4                                ...           a year ago
  • 1.0.36-rc.3                                ...           a year ago
  • 1.0.36-rc.2                                ...           a year ago
  • 1.0.36-rc.1                                ...           a year ago
  • 1.0.35                                ...           a year ago
  • 1.0.34                                ...           a year ago
  • 1.0.33-rc.3                                ...           a year ago
  • 1.0.33-rc.2                                ...           a year ago
  • 1.0.33-rc.1                                ...           a year ago
  • 1.0.33                                ...           a year ago
  • 1.0.32-rc.6                                ...           a year ago
  • 1.0.32-rc.5                                ...           a year ago
  • 1.0.32-rc.4                                ...           a year ago
  • 1.0.32-rc.3                                ...           a year ago
  • 1.0.32-rc.2                                ...           a year ago
  • 1.0.32-rc.1                                ...           a year ago
  • 1.0.32                                ...           a year ago
  • 1.0.31-rc.3                                ...           a year ago
  • 1.0.31-rc.2                                ...           a year ago
  • 1.0.31-rc.1                                ...           a year ago
  • 1.0.31                                ...           a year ago
  • 1.0.30-rc.1                                ...           a year ago
  • 1.0.30                                ...           a year ago
  • 1.0.29-rc.3                                ...           a year ago
  • 1.0.29-rc.2                                ...           a year ago
  • 1.0.29-rc.1                                ...           a year ago
  • 1.0.29                                ...           a year ago
  • 1.0.28-rc.30                                ...           a year ago
  • 1.0.28-rc.3                                ...           a year ago
  • 1.0.28-rc.2                                ...           a year ago
  • 1.0.28-rc.1                                ...           a year ago
  • 1.0.27-rc.2                                ...           a year ago
  • 1.0.27-rc.1                                ...           a year ago
  • 1.0.27                                ...           a year ago
  • 1.0.26-rc.4                                ...           a year ago
  • 1.0.26-rc.3                                ...           a year ago
  • 1.0.26-rc.2                                ...           a year ago
  • 1.0.26-rc.1                                ...           a year ago
  • 1.0.26                                ...           a year ago
  • 1.0.25-rc.1                                ...           a year ago
  • 1.0.25                                ...           a year ago
  • 1.0.24                                ...           a year ago
  • 1.0.23-rc.1                                ...           a year ago
  • 1.0.23                                ...           a year ago
  • 1.0.22-rc.2                                ...           a year ago
  • 1.0.22-rc.1                                ...           a year ago
  • 1.0.22                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.20-rc.3                                ...           a year ago
  • 1.0.20-rc.2                                ...           a year ago
  • 1.0.20-rc.1                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.18-beta.9                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18-beta.8                                ...           a year ago
  • 1.0.18-beta.7                                ...           a year ago
  • 1.0.18-beta.6                                ...           a year ago
  • 1.0.18-beta.5                                ...           a year ago
  • 1.0.18-beta.4                                ...           a year ago
  • 1.0.18-beta.3                                ...           a year ago
  • 1.0.18-beta.2                                ...           a year ago
  • 1.0.18-beta.1                                ...           a year ago
  • 1.0.18-rc.1                                ...           a year ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8-rc.3                                ...           2 years ago
  • 1.0.8-rc.2                                ...           2 years ago
  • 1.0.8-rc.1                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 2
This Month 2
Last Day 2
Last Week 164
Last Month 331
Dependencies (16)
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |