diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ddcdd94bca..3e23d54d4b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,6 +5,7 @@ Thank you for considering contributing to Medusa! This document will outline how If you're contributing to our documentation, make sure to also check out the [contribution guidelines on our documentation website](https://docs.medusajs.com/resources/contribution-guidelines/docs). ### Important + Our core maintainers prioritize pull requests (PRs) from within our organization. External contributions are regularly triaged, but not at any fixed cadence. It varies depending on how busy the maintainers are. This is applicable to all types of PRs, so we kindly ask for your patience. If you, as a community contributor, wish to work on more extensive features, please reach out to CODEOWNERS instead of directly submitting a PR with all the changes. This approach saves us both time, especially if the PR is not accepted (which will be the case if it does not align with our roadmap), and helps us effectively review and evaluate your contribution if it is accepted. @@ -26,11 +27,10 @@ If you, as a community contributor, wish to work on more extensive features, ple ## Local development > Prerequisites: +> > 1. [Forked Medusa repository cloned locally](https://github.com/medusajs/medusa). > 2. [A local Medusa application for testing](https://docs.medusajs.com/learn/installation). - - The code snippets in this section assume that your forked Medusa project and the test project are sibling directories, and you optionally setup the starter storefront as part of the installation. For example: ``` @@ -42,8 +42,7 @@ The code snippets in this section assume that your forked Medusa project and the |__ test-project_storefront // (optional) storefront to interact with medusa application ``` - -1. Replace the @medusajs/* dependencies and devDependencies in you test project's `package.json` to point to the corresponding local packages in your forked Medusa repository. You will also need to add the medusa packages in the resolutions section of the `package.json`, so that every dependency is resolved locally. For example, assuming your forked Medusa project and the test project are sibling directories: +1. Replace the @medusajs/\* dependencies and devDependencies in you test project's `package.json` to point to the corresponding local packages in your forked Medusa repository. You will also need to add the medusa packages in the resolutions section of the `package.json`, so that every dependency is resolved locally. For example, assuming your forked Medusa project and the test project are sibling directories: ```json // test project package.json @@ -108,6 +107,7 @@ The code snippets in this section assume that your forked Medusa project and the "@medusajs/cli": "file:../medusa/packages/cli/medusa-cli", "@medusajs/modules-sdk": "file:../medusa/packages/core/modules-sdk", "@medusajs/workflows-sdk": "file:../medusa/packages/core/workflows-sdk", + "@medusajs/js-sdk": "file:../../medusa/packages/core/js-sdk", "@medusajs/framework": "file:../medusa/packages/core/framework", "@medusajs/auth-emailpass": "file:../medusa/packages/modules/providers/auth-emailpass", "@medusajs/locking-redis": "file:../medusa/packages/modules/providers/locking-redis", @@ -138,6 +138,7 @@ rm -R node_modules && yarn && yarn dev ### Branches There are currently two base branches: + - `develop` - development of Medusa 2.0 - `v1.x` - development of Medusa v1.x @@ -157,7 +158,7 @@ Strive towards keeping your commits small and isolated - this helps the reviewer **Base branch** -If you wish to patch v1.x your base branch should be `v1.x`. +If you wish to patch v1.x your base branch should be `v1.x`. If your changes should result in a new version of Medusa, you will need to generate a **changelog**. Follow [this guide](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) on how to generate a changeset. @@ -192,5 +193,6 @@ All PRs should include tests for the changes that are included. We have two type ### Release The Medusa team will regularly create releases from two release branches: + - `develop` - preview releases of Medusa 2.0 - `v1.x` - official releases of Medusa 1.x