mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
docs(@angular/cli): add details about generate command
* add an explanation about what --dry-run will output * add an explanation about what --lint-fix will do * add an explanation about how to set default to use lint always * add an explanation about what --verbose will do
This commit is contained in:
parent
f9053bf5b7
commit
29c7ba17d3
@ -15,3 +15,37 @@
|
||||
- [module](generate/module)
|
||||
- [pipe](generate/pipe)
|
||||
- [service](generate/service)
|
||||
|
||||
## Options
|
||||
<details>
|
||||
<summary>dry-run</summary>
|
||||
<p>
|
||||
<code>--dry-run</code> (aliases: <code>-d</code>) <em>default value: false</em>
|
||||
</p>
|
||||
<p>
|
||||
Run through without making any changes. Will list all files that would have been created when running <code>ng generate</code>.
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>lint-fix</summary>
|
||||
<p>
|
||||
<code>--lint-fix</code> (aliases: <code>-lf</code>)
|
||||
</p>
|
||||
<p>
|
||||
Use lint to fix files after generation.
|
||||
</p>
|
||||
<p>
|
||||
You can also set default true to use lint every time after generation. To do this, change the value in <em>.angular-cli.json</em> (<code>apps[0].lintFix</code>).
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>verbose</summary>
|
||||
<p>
|
||||
<code>--verbose</code> (aliases: <code>-v</code>) <em>default value: false</em>
|
||||
</p>
|
||||
<p>
|
||||
Adds more details to output logging.
|
||||
</p>
|
||||
</details>
|
Loading…
x
Reference in New Issue
Block a user