@nx/angular:library-secondary-entry-point
Creates a secondary entry point for an Angular publishable library.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Creates a secondary entry point for an Angular publishable library.
Create a secondary entrypoint named button in the ui library.
1nx g @nx/angular:library-secondary-entry-point --library=ui --name=button
21nx generate library-secondary-entry-point ...
21nx g secondary-entry-point ... #same
2By 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 ...
2Show what will be generated without writing to disk:
1nx g library-secondary-entry-point ... --dry-run
2(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$The name of the library to create the secondary entry point for.
(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*(?:\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*)+|^[a-zA-Z][^:]*)$The name of the secondary entry point.
falseSkip generating a module for the secondary entry point.
falseSkip formatting files.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!