-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: updated contributing instructions #3376
Open
steven-pribilinskiy
wants to merge
1
commit into
module-federation:main
Choose a base branch
from
steven-pribilinskiy:fix/node-pnpm-compatibility-3375
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+14
−14
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ Thank you for your interest in contributing to Module Federation! Before startin | |
|
||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the Module Federation repository into your own GitHub account. | ||
2. [Clone](https://help.github.com/articles/cloning-a-repository/) the repository to your local machine. | ||
3. Checkout a new branch from `main` or `canary`. | ||
3. Checkout a new branch from `main`. | ||
4. Set up the development environment. Refer to the "Setup Development Environment" section below for guidance. | ||
5. If you've fixed a bug or added code that should be tested, add some tests. | ||
6. Ensure all tests pass. See the "Testing" section below for more information. | ||
7. Run `nx format:write` and `nx affected -t lint --parallel=7 --exclude='*,!tag:type:pkg'` to check and fix the code style. | ||
5. Add tests for your changes. See the "Testing" section below for more information. | ||
6. Format your code with `nx format:write` | ||
7. Check the code style with `nx affected -t lint --parallel=7 --exclude='*,!tag:type:pkg'`. | ||
8. If you've changed Node.js packages, run `npm run commit` for semantic versioning and commit. | ||
9. Submit the Pull Request, ensuring all CI runs pass. | ||
10. Your Pull Request will be reviewed by the maintainers soon. | ||
|
@@ -28,28 +28,28 @@ We recommend using Node.js 18 LTS. Check your Node.js version with `node -v`. | |
To install Node.js, use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm): | ||
|
||
```bash | ||
# Install Node.js 18 LTS | ||
nvm install 18 --lts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved suggestion to use node as default version in a separate section |
||
nvm alias default 18 | ||
nvm use 18 | ||
``` | ||
|
||
To keep the Node.js version consistent in new instances of your terminal, run: | ||
|
||
```bash | ||
nvm alias default 18 | ||
``` | ||
|
||
### Install Dependencies | ||
|
||
Enable `pnpm` with [corepack](https://nodejs.org/api/corepack.html). | ||
|
||
```sh | ||
# Enable pnpm with corepack, only available on Node.js >= `v14.19.0` | ||
corepack enable | ||
``` | ||
|
||
Add nx to global | ||
Open a new terminal that will pick up the required version of `pnpm` and run the following commands: | ||
|
||
```bash | ||
pnpm add nx@latest -g | ||
``` | ||
|
||
First, install NX globally: | ||
|
||
```sh | ||
pnpm install | ||
``` | ||
|
||
|
@@ -98,7 +98,7 @@ This command ensures that only relevant tests are executed, saving time and reso | |
|
||
### Add a Changeset | ||
|
||
Universe is using [Changesets](https://github.com/changesets/changesets) to manage the versioning and changelogs. | ||
Module Federation uses [Changesets](https://github.com/changesets/changesets) to manage the versioning and changelogs. | ||
|
||
If you've changed some packages, you need add a new changeset for the changes. Please run `changeset` command to select the changed packages and add the changeset info. | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no
canary
branch