2018-10-18 14:08:09 -07:00

1.5 KiB

Documentation below is for CLI version 6. 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.