mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 01:54:04 +08:00
docs: update contributing to use bazel from npm
This commit is contained in:
parent
e1269cb520
commit
a1c87dd577
@ -284,18 +284,18 @@ To test if your change effect the public API you need to run the API guardian on
|
|||||||
For example in case `@angular-devkit/core` package was modified you need to run:
|
For example in case `@angular-devkit/core` package was modified you need to run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bazel test //etc/api:angular_devkit_core_api
|
yarn bazel test //etc/api:angular_devkit_core_api
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also test all packages by running:
|
You can also test all packages by running:
|
||||||
```bash
|
```bash
|
||||||
bazel test //etc/api ...
|
yarn bazel test //etc/api ...
|
||||||
```
|
```
|
||||||
|
|
||||||
If you modified the public API, the test will fail. To update the golden files you need to run:
|
If you modified the public API, the test will fail. To update the golden files you need to run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bazel run //etc/api:angular_devkit_core_api.accept
|
yarn bazel run //etc/api:angular_devkit_core_api.accept
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**: In some cases we use aliased symbols to create namespaces.
|
**Note**: In some cases we use aliased symbols to create namespaces.
|
||||||
|
@ -273,18 +273,18 @@ To test if your change effect the public API you need to run the API guardian on
|
|||||||
For example in case `@angular-devkit/core` package was modified you need to run:
|
For example in case `@angular-devkit/core` package was modified you need to run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bazel test //etc/api:angular_devkit_core_api
|
yarn bazel test //etc/api:angular_devkit_core_api
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also test all packages by running:
|
You can also test all packages by running:
|
||||||
```bash
|
```bash
|
||||||
bazel test //etc/api ...
|
yarn bazel test //etc/api ...
|
||||||
```
|
```
|
||||||
|
|
||||||
If you modified the public API, the test will fail. To update the golden files you need to run:
|
If you modified the public API, the test will fail. To update the golden files you need to run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bazel run //etc/api:angular_devkit_core_api.accept
|
yarn bazel run //etc/api:angular_devkit_core_api.accept
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**: In some cases we use aliased symbols to create namespaces.
|
**Note**: In some cases we use aliased symbols to create namespaces.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user