Thank you for taking the time to contribute! 🎉
There are many ways to contribute to the Bedrock Layout Primitives. The most common is to fork the repository and make your own changes. You can also contribute directly to the discussions at the GitHub repository or you can create an issue to discuss the changes or problems you find.
When contributing code to Bedrock Layout Primitives, please first create an issue to discuss the changes.
Bedrock Layout Primitives is a monorepo of packages that are currently versioned independently of each other. It also utilizes Storybook as a documentation website.
To manage all of these things, Bedrock uses Lerna to manage all the repositories into one monorepo. Lerna is used to publish to NPM, tag releases to Github, and process change logs under each package. To make the above possible in CI, Bedrock has adopted conventional commits and uses commitizen and husky to enforce it.
To make a pull request, do the following:
- Fork the repository.
- Clone the repository from your GitHub.
- Set up your environment with
yarn
- Check out a new branch and add your modification.
- Add test cases for all your changes.
- Update any README.md and documentation in Storybook under the examples folder in the corresponding package.
- Use commitizen to do git commit by running
yarn cz
(be sure to stage your changes first). Doing this will automatically runyarn verify
as a pre-commit hook when you do this. If anything fails, fix and follow this step again. - DO NOT BUMP ANY VERSION NUMBERS OR UPDATE CHANGELOG.
- Send a pull request 🙏