docs: add explanation of how to use locally created build artifacts in a local project (#42319)

Add explanation of using `ng-dev build-and-link` to test local changes in another project.

Closes #39719

PR Close #42319
This commit is contained in:
Joey Perrott 2021-05-25 10:15:13 -07:00 committed by Zach Arend
parent f1d12bf749
commit 4a2cc3e451
1 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,17 @@ merged if the code is formatted properly and all tests are passing.
<a name="formatting-your-source-code">
<a name="clang-format"></a>
### Testing changes against a local library/project
Often for developers the best way to ensure the changes they have made work as expected is to run
use changes in another library or project. To do this developers can build Angular locally, and
using `yarn link` build a local project with the created artifacts.
This can be done by running:
```sh
yarn ng-dev build-and-link <path-to-local-project-root>
```
## Formatting your source code
Angular uses [clang-format](https://clang.llvm.org/docs/ClangFormat.html) to format the source code.