A mono-repository containing foundations and component packages needed for designing and building digital services for the Co‑op. All packages can be found in the packages directory.
🚨 This project uses yarn
rather than npm
as it allows us to manage local workspaces and maintain links to local components. This is a requirement not a preference. If you install dependencies inside components, especially React components, you will run into trouble if you do not use yarn. 🚨
npm install lerna -g
npm install yarn -g
yarn install
workbench
directory and run yarn dev
yarn test
at rootyarn test:watch
for continuous feedbackyarn add
rather than npm install
yarn dev
rather than npm dev
This repository uses lerna to automatically manage versioning of all the different packages. These are published as separate packages to Co-op digital's NPM organisation. These packages can be installed by digital teams as required as dependencies of their project.
If you publish a new or amended component - create a release for the coop-frontend repo adding release notes to let everyone know what changes you have made and why.
The Slack github integration will let everyone on the #frontend and #designsystem channels know that there has been an update.
We have been changing a lot in our frontend packages in order to simplify how teams use them. This means we have deprecated packages in favour of others or that it was no longer needed.
If you are using a deprecated package please look in our ./docs/migrations
directory for a possible migration or contact the Experience Library Slack channel for support #experience-library-support