Library generator
This is the documentation for Angular 6.
You can switch to the latest version Angular 10.
You can switch to the latest version Angular 10.
ng generate library [name] [--[argument]=[value]]
ng generate lib
Generate a library project for Angular.
Links & Tutorials
Options
--entryFile
#
Type | string |
Default | public_api |
--prefix
#
Type | string |
Default | lib |
Aliases | p |
--skipPackageJson
#
Type | boolean |
Default | false |
--skipTsConfig
#
Type | boolean |
Default | false |