build: gulp format
only changed lines by default (#28411)
Changes `gulp format` to format only changed lines by default (`gulp format:changed`) and introduces a new task, `gulp format:all` to format all source files. Since formatting only changed lines should be the more common action, it makes more sense as the shorter default. PR Close #28411
This commit is contained in:

committed by
Matias Niemelä

parent
dad1bc7ca3
commit
c1aa1bf872
@ -105,8 +105,8 @@ 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 can not be merged.
|
||||
|
||||
You can automatically format your code by running:
|
||||
- `gulp format`: format all source code
|
||||
- `gulp format:changed`: re-format only edited source code.
|
||||
- `gulp format`: re-format only edited source code.
|
||||
- `gulp format:all`: format _all_ source code
|
||||
|
||||
A better way is to set up your IDE to format the changed file on each file save.
|
||||
|
||||
|
Reference in New Issue
Block a user