Skip to content

docs(@angular/cli): add details about generate command #6563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/documentation/generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>