-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs: update dev environment instructions #18359
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
Merged
Merged
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 hidden or 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 |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Developer guide: getting your environment set up | ||
|
||
1. Make sure you have `node` installed with a version at _least_ 10.0.0 and `yarn` with a version | ||
of at least 1.10.0. We recommend using `nvm` to manage your node versions. | ||
1. Make sure you have both `node` and `yarn` installed. | ||
We recommend using `nvm` to manage your node versions. | ||
2. angular/components uses Bazel which requires certain Bash and UNIX tools. | ||
- On Windows: Follow the [instructions](https://docs.bazel.build/versions/master/install-windows.html#5-optional-install-compilers-and-language-runtimes) | ||
to install [`MSYS2`](https://www.msys2.org/) and the listed "Common MSYS2 packages". | ||
Afterwards add `C:\msys64\usr\bin` to the `PATH` environment variable. | ||
3. Run `yarn global add gulp` to install gulp. | ||
4. Fork the `angular/components` repo on GitHub. | ||
5. Clone your fork to your machine with `git clone`. | ||
3. Fork the `angular/components` repo on GitHub. | ||
4. Clone your fork to your machine with `git clone`. | ||
Recommendation: name your git remotes `upstream` for `angular/components` | ||
and `<your-username>` for your fork. Also see the [team git shortcuts](https://github.com/angular/components/wiki/Team-git----bash-shortcuts). | ||
6. From the root of the project, run `yarn`. | ||
5. From the root of the project, run `yarn` to install the dependencies. | ||
|
||
|
||
To build angular/components in dev mode, run `gulp material:build`. | ||
To build angular/components in release mode, run `gulp material:build-release` | ||
To build angular/components in release mode, run `yarn build`. The output can be found under `dist/releases`. | ||
|
||
To bring up a local server, run `yarn dev-app`. This will automatically watch for changes | ||
and rebuild. The browser should refresh automatically when changes are made. | ||
|
||
### Running tests | ||
|
||
To run unit tests, run `yarn test`. | ||
To run unit tests, run `yarn test <target>`. The `target` can be either a short name (e.g. `yarn test button`) or an explicit path `yarn test src/cdk/stepper`. | ||
To run the e2e tests, run `yarn e2e`. | ||
To run lint, run `yarn lint`. |
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.
Uh oh!
There was an error while loading. Please reload this page.