Alan 068bb4001d docs: add deprecation and pr note
Docs are deprecated in favor of the the new pages in AIO which are WIP.
2019-01-09 09:14:13 -08:00

1.6 KiB

Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see here.

ng generate library

Overview

ng generate library [name] generates a library project for Angular.

Alias

lib - ng generate lib [name]

Options

dry-run

--dry-run (alias: -d)

Run through without making any changes.

force

--force (alias: -f)

Forces overwriting of files.

entry-file

--entry-file

The path to create the library's public API file.

prefix

--prefix (alias: -p)

The prefix to apply to generated selectors.

skip-package-json

--skip-package-json

Do not add dependencies to package.json.

skip-install

--skip-install

Skip installing dependency packages.

skip-ts-config

--skip-ts-config

Do not update tsconfig.json for development experience.