From 42c58d9fe8e51931c465f779b3da64fe8551b8c4 Mon Sep 17 00:00:00 2001 From: Issei Horie Date: Mon, 4 May 2020 11:37:21 +0900 Subject: [PATCH] docs(dev-infra): update format commands described in DEVELOPER.md (#36910) This commit updates DEVELOPER.md to describe the latest formatting command 'ng-dev' and removed deprecated 'gulp' command. Fixes #36909 PR Close #36910 --- docs/DEVELOPER.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index cae2d95ce9..522fbda0da 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -96,8 +96,9 @@ Angular uses [clang-format](http://clang.llvm.org/docs/ClangFormat.html) to form If the source code is not properly formatted, the CI will fail and the PR cannot be merged. You can automatically format your code by running: -- `yarn gulp format`: re-format only edited source code. -- `yarn gulp format:all`: format _all_ source code +- `yarn ng-dev format changed [shaOrRef]`: format only files changed since the provided sha/ref. `shaOrRef` defaults to `master`. +- `yarn ng-dev format all`: format _all_ source code +- `yarn ng-dev format files `: format only provided files A better way is to set up your IDE to format the changed file on each file save.