generate library - rbinsztock/angular-cli GitHub Wiki
Documentation below is for CLI version 6. For version 7 see here.
ng generate library [name]
generates a library project for Angular.
lib - ng generate lib [name]
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.