generate library

Angular Builds edited this page Oct 22, 2018 · 3 revisions

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.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.