Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.8 KB

CONTRIBUTING.md

File metadata and controls

25 lines (17 loc) · 1.8 KB

Contributing to Bedrock Layout

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.

Contributing Code

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:

  1. Fork the repository.
  2. Clone the repository from your GitHub.
  3. Set up your environment with yarn
  4. Check out a new branch and add your modification.
  5. Add test cases for all your changes.
  6. Update any README.md and documentation in Storybook under the examples folder in the corresponding package.
  7. Use commitizen to do git commit by running yarn cz (be sure to stage your changes first). Doing this will automatically run yarn verify as a pre-commit hook when you do this. If anything fails, fix and follow this step again.
  8. DO NOT BUMP ANY VERSION NUMBERS OR UPDATE CHANGELOG.
  9. Send a pull request 🙏