1 | # Contributing
|
2 |
|
3 | Every 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 |
|
7 | For 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
|
10 | npx lerna add @zywave/zui-new-component-name --scope=@zywave/zui-components-all
|
11 | ```
|
12 |
|
13 | ### Add the new component to zui-bundle
|
14 |
|
15 | Since 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 |
|
17 | Also, add your component's FOUC styles into `/packages/misc/zui-bundle/src/css/zui-bundle.fouc.scss`.
|