UNPKG

732 BMarkdownView Raw
1# Contributing
2
3Every time a new component is created, it should be added to zui-components-all and zui-bundle.
4
5## Adding a new component to the bundle
6
7For your component to be recognized by zui-bundle, please add it to zui-components-all's `package.json` by running the following command from the root of ZUI:
8
9```shell
10npx lerna add @zywave/zui-new-component-name --scope=@zywave/zui-components-all
11```
12
13### Add the new component to zui-bundle
14
15Since zui-components-all is a dependency of zui-bundle, you simply need to manually add a line to import your new component package into `/packages/misc/zui-bundle/src/bundle.js`.
16
17Also, add your component's FOUC styles into `/packages/misc/zui-bundle/src/css/zui-bundle.fouc.scss`.