@nx/angular:library-secondary-entry-point

Creates a secondary entry point for an Angular publishable library.

Examples

Create a secondary entrypoint named button in the ui library.

1nx g @nx/angular:library-secondary-entry-point --library=ui --name=button 2
Nx 15 and lower use @nrwl/ instead of @nx/

Usage

1nx generate library-secondary-entry-point ... 2
1nx g secondary-entry-point ... #same 2

By default, Nx will search for library-secondary-entry-point in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/angular:library-secondary-entry-point ... 2
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

1nx g library-secondary-entry-point ... --dry-run 2

Options

library

Required
string
Pattern: ^[a-zA-Z].*$

The name of the library to create the secondary entry point for.

name

Required
string
Pattern: ^[a-zA-Z].*$

The name of the secondary entry point.

skipModule

boolean
Default: false

Skip generating a module for the secondary entry point.