docs(developer): add linting section and correct command to verify API changes
This commit is contained in:
parent
465516b905
commit
35f9a1c2cb
11
DEVELOPER.md
11
DEVELOPER.md
|
@ -133,7 +133,8 @@ If you happen to modify the public API of Angular, API golden files must be upda
|
||||||
$ gulp public-api:update
|
$ gulp public-api:update
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: The command `./test.sh tools` fails when the API doesn't match the golden files.
|
Note: The command `gulp public-api:enforce` fails when the API doesn't match the golden files. Make sure to rebuild
|
||||||
|
the project before trying to verify after an API change.
|
||||||
|
|
||||||
## <a name="clang-format"></a> Formatting your source code
|
## <a name="clang-format"></a> Formatting your source code
|
||||||
|
|
||||||
|
@ -146,6 +147,14 @@ You can automatically format your code by running:
|
||||||
$ gulp format
|
$ gulp format
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Linting/verifying your source code
|
||||||
|
|
||||||
|
You can check that your code is properly formatted and adheres to coding style by running:
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
$ gulp lint
|
||||||
|
```
|
||||||
|
|
||||||
## Publishing your own personal snapshot build
|
## Publishing your own personal snapshot build
|
||||||
|
|
||||||
You may find that your un-merged change needs some validation from external participants.
|
You may find that your un-merged change needs some validation from external participants.
|
||||||
|
|
Loading…
Reference in New Issue