Skip to content

Commit 29c7ba1

Browse files
Pittanfilipesilva
authored andcommitted
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
1 parent f9053bf commit 29c7ba1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/documentation/generate.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,37 @@
1515
- [module](generate/module)
1616
- [pipe](generate/pipe)
1717
- [service](generate/service)
18+
19+
## Options
20+
<details>
21+
<summary>dry-run</summary>
22+
<p>
23+
<code>--dry-run</code> (aliases: <code>-d</code>) <em>default value: false</em>
24+
</p>
25+
<p>
26+
Run through without making any changes. Will list all files that would have been created when running <code>ng generate</code>.
27+
</p>
28+
</details>
29+
30+
<details>
31+
<summary>lint-fix</summary>
32+
<p>
33+
<code>--lint-fix</code> (aliases: <code>-lf</code>)
34+
</p>
35+
<p>
36+
Use lint to fix files after generation.
37+
</p>
38+
<p>
39+
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>).
40+
</p>
41+
</details>
42+
43+
<details>
44+
<summary>verbose</summary>
45+
<p>
46+
<code>--verbose</code> (aliases: <code>-v</code>) <em>default value: false</em>
47+
</p>
48+
<p>
49+
Adds more details to output logging.
50+
</p>
51+
</details>

0 commit comments

Comments
 (0)