* chore(angular): support angular 13 Support Angular 13 chore(angular): support ng 13 next 11 chore(angular): upgrade tslib dep chore(angular): update package and ng-packagr-lite executors to align with ng-packagr v13 chore(angular): update test snapshots with ts version fix(angular): buildable lib tsconfig transform test * chore(angular): sync ng-packagr changes to the package and ng-packagr-lite executors * chore(angular): add migrations * chore(angular): rxjs7 * feat(angular): check rxjs version to install * feat(angular): update jest resolver to resolve esm * chore(angular): fix version * chore(angular): support jest-preset-angular * fix(angular): tests * fix(angular): fix e2e tests and add .angular to gitignore * fix(angular): fix jest transformers ignore pattern * fix(angular): fix node test * fix(angular): fix workspace test * fix(angular): import marble utils from jasmine-marbles instead of @nrwl/angular/testing * feat(angular): update ngrx to 13.0.0-beta.;0 * fix(angular): temporarily skip test with pnpm * fix(angular): bump jest-preset-angular to fix jest performance issues * fix(angular): webpack-browser and server schema changes Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com> Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2.4 KiB
@nrwl/angular:library
Creates an Angular library.
Usage
nx generate library ...
nx g lib ... # same
By default, Nx will search for library in the default collection provisioned in angular.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:library ...
Show what will be generated without writing to disk:
nx g library ... --dry-run
Options
addModuleSpec
Default: false
Type: boolean
Add a module spec file.
buildable
Default: false
Type: boolean
Generate a buildable library.
directory
Type: string
A directory where the library is placed.
importPath
Type: string
The library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.
lazy
Default: false
Type: boolean
Add RouterModule.forChild when set to true, and a simple array of routes when set to false.
linter
Default: eslint
Type: string
Possible values: eslint, none
The tool to use for running lint checks.
name
Type: string
The name of the library.
parentModule
Type: string
Update the router configuration of the parent module using loadChildren or children, depending on what lazy is set to.
prefix
Alias(es): p
Type: string
The prefix to apply to generated selectors.
publishable
Default: false
Type: boolean
Generate a publishable library.
routing
Default: false
Type: boolean
Add router configuration. See lazy for more information.
simpleModuleName
Default: false
Type: boolean
Keep the module name simple (when using --directory).
skipFormat
Default: false
Type: boolean
Skip formatting files.
skipPackageJson
Default: false
Type: boolean
Do not add dependencies to package.json.
skipTsConfig
Default: false
Type: boolean
Do not update tsconfig.json for development experience.
standaloneConfig
Type: boolean
Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json.
strict
Default: true
Type: boolean
Create a library with stricter type checking and build optimization options.
tags
Type: string
Add tags to the library (used for linting).
unitTestRunner
Default: jest
Type: string
Possible values: karma, jest, none
Test runner to use for unit tests.