This package works together with the sugUI components library.
Most users would fork this repo to create their custom design system based on the sugUI components library. If that's the case, you might want to setup your local environment to have both packages working together with hot reloading.
First of all, clone this repository in your computer and install the dependencies using yarn or npm i.
Then clone the sugUI package into your computer. Keep the name of the folder as sugui. It should look something like this:
- /users/your-user/dev/sugui
- /users/your-user/dev/sugui-design-system
Now you need to create a symbolic link to the sugUI library.
Go to the /sugui folder and type:
yarn linkThen go to /sugui-design-system/node_modules folder and type:
yarn link suguiDone!, now your sugui folder in node_modules will reference your cloned sugui folder, rather than the one downloaded from npm.
Now you can run the styleguide with yarn run styleguide and it will trigger the Hot Reload every time you change anything in sugui or in sugui-design-system.
Type:
yarn run styleguide:buildyarn run deploy