audette-customer-design-system v1.0.14
Test Package Locally
Run the following command in the design-system repository to bundle the package.
yarn build
Navigate to your repository that is using this design-system, and add the following to your package.json
dependencies list.
Note that anything after "link" is the directory to your package.
"design-system": "link:.."
After this you can run yarn
in your project to install all packages in your package.json file.
Now navigate to to design-system/node_modules/react
and run npm link
. Do this with react-dom as well.
Navigate back to your root directory of the project using this package, and run the following two commands.
npm link react
npm link react-dom
These commands will ensure that react and react-dom do not get rendered twice on the page when testing in development.
Finally, run yarn
again in your project and you should be able to access components in the design system! Hooray!