mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
63 lines
1.2 KiB
Markdown
63 lines
1.2 KiB
Markdown
<!-- Links in /docs/documentation should NOT have \`.md\` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng generate library
|
|
|
|
## Overview
|
|
Generate a library project for Angular.
|
|
|
|
## Options
|
|
<details>
|
|
<summary>dry-run</summary>
|
|
<p>
|
|
<code>--dry-run</code> (alias: <code>-d</code>)
|
|
</p>
|
|
<p>
|
|
Run through without making any changes.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>force</summary>
|
|
<p>
|
|
<code>--force</code> (alias: <code>-f</code>)
|
|
</p>
|
|
<p>
|
|
Forces overwriting of files.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>entry-file</summary>
|
|
<p>
|
|
<code>--entry-file</code>
|
|
</p>
|
|
<p>
|
|
The path to create the library's public API file.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>prefix</summary>
|
|
<p>
|
|
<code>--prefix</code> (alias: <code>-p</code>)
|
|
</p>
|
|
<p>
|
|
The prefix to apply to generated selectors.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>skip-package-json</summary>
|
|
<p>
|
|
<code>--skip-package-json</code>
|
|
</p>
|
|
<p>
|
|
Do not add dependencies to package.json.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>skip-ts-config</summary>
|
|
<p>
|
|
<code>--skip-ts-config</code>
|
|
</p>
|
|
<p>
|
|
Do not update tsconfig.json for development experience.
|
|
</p>
|
|
</details>
|