- Node.js >= v16 must be installed.
- We are using Yarn Modern so you need either a global install of Yarn v1 (
npm i -g yarn) or you need to enable Corepack.
- (If using Windows) Enable Developer Mode in the Windows settings app. On Windows 11, this can be done by searching the start menu for "Developer settings" and then enabling the Developer Mode toggle switch.
- Run
yarnin the repository's root directory to install everything you need for development. - Run
yarn buildin the root directory to build the modules.
yarn testwill run the tests once.yarn coveragewill run the tests and produce a coverage report incoverage/.yarn test:watchwill run the tests on every change.
- Run
yarn buildin the root directory to build the modules. (Required before publishing) - Run
yarn build PACKAGE_NAME ANOTHER_PACKAGE_NAMEto only build certain packages. - Run
yarn build:watchto build packages on every change.
- Run above installation steps and then
cdto thesitedirectory. - Run
yarn devto run the Next.js development server. - Run
yarn buildto create a build of the assets for the documentation website.
Emotion uses changesets to do versioning. What that means for contributors is that you need to add a changeset by running yarn changeset which contains what packages should be bumped, their associated semver bump types and some markdown which will be inserted into changelogs.