@beisen/storybook-lib
<p align="center"> <img alt="Shield" src="http://lc-cj3ctxdw.cn-n1.lcfile.com/baf8019f3a541823d42a.png" height="400px" with="700px" /> </p>
Last updated a year ago by beisencorp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @beisen/storybook-lib 
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 buil 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.4.66                                ...           latest (a year ago)
  • 0.4.62-bate.6                                ...           next (a year ago)

301 Versions

  • 1.4.66                                ...           a year ago
  • 1.4.65-beta.5                                ...           a year ago
  • 1.4.65-beta.4                                ...           a year ago
  • 1.4.65-beta.2                                ...           a year ago
  • 1.4.65-beta.1                                ...           a year ago
  • 1.4.65                                ...           a year ago
  • 1.4.64-beta.2                                ...           a year ago
  • 1.4.64-beta.1                                ...           a year ago
  • 1.4.64                                ...           a year ago
  • 1.4.63-rc.2                                ...           a year ago
  • 1.4.63-rc.1                                ...           a year ago
  • 0.4.63                                ...           a year ago
  • 0.4.62-bate.7                                ...           a year ago
  • 0.4.64-rb                                ...           a year ago
  • 0.4.63-rb                                ...           a year ago
  • 0.4.62-bate.6-rb                                ...           a year ago
  • 0.4.62-bate.6                                ...           a year ago
  • 0.4.62-bate.5                                ...           a year ago
  • 0.4.62-bate.4                                ...           a year ago
  • 0.4.62-bate.3                                ...           a year ago
  • 0.4.62-bate.2                                ...           a year ago
  • 0.4.62                                ...           a year ago
  • 0.4.61                                ...           a year ago
  • 0.4.60                                ...           a year ago
  • 0.4.59                                ...           a year ago
  • 0.4.58                                ...           a year ago
  • 0.4.57-alpha.3                                ...           a year ago
  • 0.4.57-alpha.2                                ...           a year ago
  • 0.4.57-alpha.1                                ...           a year ago
  • 0.4.57                                ...           a year ago
  • 0.4.56                                ...           a year ago
  • 0.4.55                                ...           a year ago
  • 0.4.54                                ...           a year ago
  • 0.4.53                                ...           a year ago
  • 0.4.52                                ...           a year ago
  • 0.4.51                                ...           a year ago
  • 0.4.50                                ...           a year ago
  • 0.4.49                                ...           a year ago
  • 0.4.48                                ...           a year ago
  • 0.4.47                                ...           a year ago
  • 0.4.46                                ...           a year ago
  • 0.4.45                                ...           a year ago
  • 0.4.43                                ...           a year ago
  • 0.4.42                                ...           a year ago
  • 0.4.41                                ...           a year ago
  • 0.4.40                                ...           a year ago
  • 0.4.39                                ...           a year ago
  • 0.4.38                                ...           a year ago
  • 0.4.37                                ...           a year ago
  • 0.4.36                                ...           a year ago
  • 0.4.34                                ...           a year ago
  • 0.4.33                                ...           a year ago
  • 0.4.32                                ...           a year ago
  • 0.4.31                                ...           a year ago
  • 0.4.30                                ...           a year ago
  • 0.4.29                                ...           a year ago
  • 0.4.28                                ...           a year ago
  • 0.4.26                                ...           a year ago
  • 0.4.25                                ...           a year ago
  • 0.4.24                                ...           a year ago
  • 0.4.23                                ...           a year ago
  • 0.4.22                                ...           a year ago
  • 0.4.21                                ...           a year ago
  • 0.4.20                                ...           a year ago
  • 0.4.19                                ...           a year ago
  • 0.4.18                                ...           a year ago
  • 0.4.17                                ...           a year ago
  • 0.4.16                                ...           a year ago
  • 0.4.15-beta-12                                ...           a year ago
  • 0.4.15-beta-11                                ...           a year ago
  • 0.4.15-beta-10                                ...           a year ago
  • 0.4.15-beta-9                                ...           a year ago
  • 0.4.15-beta-7                                ...           a year ago
  • 0.4.15-beta-8                                ...           a year ago
  • 0.4.15-beta-5                                ...           a year ago
  • 0.4.15-beta-6                                ...           a year ago
  • 0.4.15-beta-4                                ...           a year ago
  • 0.4.15-beta-2                                ...           a year ago
  • 0.4.15-beta-1                                ...           a year ago
  • 0.4.15                                ...           a year ago
  • 0.4.14                                ...           a year ago
  • 0.4.13                                ...           a year ago
  • 0.4.12                                ...           a year ago
  • 0.4.11                                ...           a year ago
  • 0.4.10                                ...           a year ago
  • 0.4.9                                ...           a year ago
  • 0.4.8                                ...           a year ago
  • 0.4.7                                ...           a year ago
  • 0.4.6                                ...           a year ago
  • 0.4.5                                ...           a year ago
  • 0.4.4                                ...           a year ago
  • 0.4.3                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.13-beta-6                                ...           a year ago
  • 0.3.13-beta-5                                ...           a year ago
  • 0.3.13-beta-4                                ...           a year ago
  • 0.3.13-beta-3                                ...           a year ago
  • 0.3.13-beta-2                                ...           a year ago
  • 0.3.13-beta-1                                ...           a year ago
  • 0.3.13                                ...           a year ago
  • 0.3.12                                ...           a year ago
  • 0.3.11                                ...           a year ago
  • 0.3.10                                ...           a year ago
  • 0.3.9                                ...           a year ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.6-beta-11                                ...           a year ago
  • 0.3.6-beta-10                                ...           a year ago
  • 0.3.6-beta-9                                ...           a year ago
  • 0.3.6-beta-8                                ...           a year ago
  • 0.3.6-beta-7                                ...           a year ago
  • 0.3.6-beta-6                                ...           a year ago
  • 0.3.6-beta-5                                ...           a year ago
  • 0.3.6-beta-4                                ...           a year ago
  • 0.3.6-beta-3                                ...           a year ago
  • 0.3.6-beta-2                                ...           a year ago
  • 0.3.6-beta-1                                ...           a year ago
  • 0.3.6-beta                                ...           a year ago
  • 0.3.6                                ...           a year ago
  • 0.3.5-bate                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2-test11                                ...           a year ago
  • 0.3.2-test10                                ...           a year ago
  • 0.3.2-test9                                ...           a year ago
  • 0.3.2-test8                                ...           a year ago
  • 0.3.2-test7                                ...           a year ago
  • 0.3.2-test6                                ...           a year ago
  • 0.3.2-test5                                ...           a year ago
  • 0.3.2-test4                                ...           a year ago
  • 0.3.2-test3                                ...           a year ago
  • 0.3.2-test2                                ...           a year ago
  • 0.3.2-test1                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.33                                ...           a year ago
  • 0.2.32-beta4                                ...           a year ago
  • 0.2.32-beta2                                ...           a year ago
  • 0.2.32-beta1                                ...           a year ago
  • 0.2.32-bate                                ...           a year ago
  • 0.2.31                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.99                                ...           a year ago
  • 0.1.98                                ...           a year ago
  • 0.1.97                                ...           a year ago
  • 0.1.96                                ...           a year ago
  • 0.1.95                                ...           a year ago
  • 0.1.94                                ...           a year ago
  • 0.1.93                                ...           a year ago
  • 0.1.92                                ...           a year ago
  • 0.1.90                                ...           a year ago
  • 0.1.91                                ...           a year ago
  • 0.1.89                                ...           a year ago
  • 0.1.88                                ...           a year ago
  • 0.1.87                                ...           a year ago
  • 0.1.86                                ...           a year ago
  • 0.1.85                                ...           a year ago
  • 0.1.84                                ...           a year ago
  • 0.1.83                                ...           a year ago
  • 0.1.82                                ...           a year ago
  • 0.1.81                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.79                                ...           a year ago
  • 0.1.78                                ...           a year ago
  • 0.1.77                                ...           a year ago
  • 0.1.76                                ...           a year ago
  • 0.1.75                                ...           a year ago
  • 0.1.74                                ...           a year ago
  • 0.1.73                                ...           a year ago
  • 0.1.72                                ...           a year ago
  • 0.1.71                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.69                                ...           a year ago
  • 0.1.68                                ...           a year ago
  • 0.1.66                                ...           a year ago
  • 0.1.65                                ...           a year ago
  • 0.1.64                                ...           a year ago
  • 0.1.63                                ...           a year ago
  • 0.1.62                                ...           a year ago
  • 0.1.61                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.59                                ...           a year ago
  • 0.1.58                                ...           a year ago
  • 0.1.57                                ...           a year ago
  • 0.1.56                                ...           a year ago
  • 0.1.55                                ...           a year ago
  • 0.1.54                                ...           a year ago
  • 0.1.53                                ...           a year ago
  • 0.1.52                                ...           a year ago
  • 0.1.51                                ...           a year ago
  • 0.1.49                                ...           a year ago
  • 0.1.48                                ...           a year ago
  • 0.1.47                                ...           a year ago
  • 0.1.46                                ...           a year ago
  • 0.1.45                                ...           a year ago
  • 0.1.44                                ...           a year ago
  • 0.1.43                                ...           a year ago
  • 0.1.42                                ...           a year ago
  • 0.1.41                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.39                                ...           a year ago
  • 0.1.38                                ...           a year ago
  • 0.1.37                                ...           a year ago
  • 0.1.36                                ...           a year ago
  • 0.1.35                                ...           a year ago
  • 0.1.34                                ...           a year ago
  • 0.1.33                                ...           a year ago
  • 0.1.32                                ...           a year ago
  • 0.1.31                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.29                                ...           a year ago
  • 0.1.28                                ...           a year ago
  • 0.1.27                                ...           a year ago
  • 0.1.26                                ...           a year ago
  • 0.1.25                                ...           a year ago
  • 0.1.24                                ...           a year ago
  • 0.1.23                                ...           a year ago
  • 0.1.22                                ...           a year ago
  • 0.1.21                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.19                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.69                                ...           a year ago
  • 0.0.68                                ...           a year ago
  • 0.0.67                                ...           a year ago
  • 0.0.66                                ...           a year ago
  • 0.0.65                                ...           a year ago
  • 0.0.64                                ...           a year ago
  • 0.0.63                                ...           a year ago
  • 0.0.62                                ...           a year ago
  • 0.0.61                                ...           a year ago
  • 0.0.59                                ...           a year ago
  • 0.0.58                                ...           a year ago
  • 0.0.57                                ...           a year ago
  • 0.0.56                                ...           a year ago
  • 0.0.55                                ...           a year ago
  • 0.0.54                                ...           a year ago
  • 0.0.53                                ...           a year ago
  • 0.0.52                                ...           a year ago
  • 0.0.51                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.49                                ...           a year ago
  • 0.0.48                                ...           a year ago
  • 0.0.47                                ...           a year ago
  • 0.0.46                                ...           a year ago
  • 0.0.45                                ...           a year ago
  • 0.0.43                                ...           a year ago
  • 0.0.42                                ...           a year ago
  • 0.0.41                                ...           a year ago
  • 0.0.40                                ...           a year ago
  • 0.0.39                                ...           a year ago
  • 0.0.38                                ...           a year ago
  • 0.0.37                                ...           a year ago
  • 0.0.36                                ...           2 years ago
  • 0.0.35                                ...           2 years ago
  • 0.0.34                                ...           2 years ago
  • 0.0.33                                ...           2 years ago
  • 0.0.32                                ...           2 years ago
  • 0.0.31                                ...           2 years ago
  • 0.0.30                                ...           2 years ago
  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Downloads
Today 0
This Week 4
This Month 307
Last Day 1
Last Week 1
Last Month 616
Dependencies (19)
Dev Dependencies (12)

Copyright 2014 - 2017 © taobao.org |