This repo contains react apps and component libraries to share between apps.
The repo uses Yarn workspaces to link dependencies, and to enable running yarn install
once.
You should use yarn instead of npm.
- mc-conflict-ui - UI app for resolving conflicts.
- mc-react-components - Component library for shared components.
- Create a new folder for the project.
- Add cross-env as a dependency to your new project.
- Add the new project into the root package.json workspaces array:
{
"workspaces": ["workspace-a", "workspace-b", "add your new project here"]
}
- Add any dependency you want from the repo your your package.json (some of the packages might need to be builded before use). make sure that the dependency version matches the version in the target package.json.
{
"dependencies": {
"mc-react-components": "0.1.0"
}
}
- Add any external dependencies you would like using yarn.
- start hacking 😉