跳到主要内容
版本:Next

贡献指南

Development

git clone git@github.com:DTStack/molecule.git

首先 Clone 源码到本地 开发模式

yarn # install dependencies

yarn dev # 启动开发模式

Molecule 中的组件是基于 Storybook 开发并管理的,预览地址:http://localhost:6006/默认地址浏览。

构建 & 预览

yarn build
yarn web # 预览打包后的 Web

当前我们默认将 Molecule 以 ES6 模块的方式构建到 esm 目录。另外, 这里除了 Storybook 提供的组件预览模式以外,我们同时内置了一个使用 ESM 模块的 Web 预览模式。

Git Work Flow

Refer to Branch-based Workflow

Naming rules

Unify the Service methods basic prefix naming:

  • add, prefix for Add sth.
  • remove, prefix for Remove sth.
  • update, prefix for Update sth.
  • get, prefix for Get sth.
  • set, prefix for Set sth.
  • create, perfix for create sth.
  • on, prefix for listen to the event.
  • find, prefix for Find sth.
  • move, prefix for Move sth.
  • append, prefix for Append sth.
  • toggle, prefix for Toggle sth.

Reference