Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 2.99 KB

CONTRIBUTING.md

File metadata and controls

77 lines (48 loc) · 2.99 KB

Contributing to oneRepo

Reporting issues

Use the Bug Report issue template.

The template will guide you through asking for extra information. Fill out as much as possible to help maintainers help you faster.

Requesting features

Use the Feature Request issue template.

Code changes

Pre-requisites

Ensure you have the following before beginning:

  • ✅ Using a supported version of Node.js (^18 || ^20).
  • ✅ Node.js’s corepack is enabled.
  • ✅ The oneRepo CLI is installed.
  • ✅ Forked and cloned the repository.

Local development

  1. Use the one command-line interface directly from the installed command.

    The CLI will properly pass-through and run the local source, so all of your changes will instantly be available for debugging.

  2. Make your code changes.

  3. Do your best to make changes easy to review:

    • ✅ Add and update tests
    • ✅ Adjust tsdoc comments
    • ✅ Add documentation
    • ✅ Ensure a pre-commit hooks run and pass
  4. Create your pull request against the oneRepo repository.

    Ensure that you check the box to “Allow edits and access to secrets by maintainers”. This will allow maintainers to help, collaborate, and move your changes through quicker with fewer back-and-forth requests.

Documentation changes

:::caution[Generated content] Most documentation requires a full terminal in order to ensure proper formatting, linting, and more. Furthermore if documentation appears within a signed @generated block, it is auto-generated, either using typedoc or from oneRepo docgen.

Please follow the steps for code changes before making documentation updates. :::

  1. Run the documentation application:

    one workspace docs start
  2. After tsdoc or other code changes, collect the content to see generated updates:

    one workspace docs collect-content
    one workspace docs typedoc

Style guide

Always capitalize the following words unless referred to in a context outside of their meanings from the glossary:

  • Monorepo
  • Root
  • Workspace
  • Graph

License

When you submit code changes, your submissions are understood to be under the same MIT License that covers the project.