@nx/plugin:create-package
Create a framework package that uses Nx CLI.
The State of JS survey is live, featuring a monorepo tools sectionThe State of JS survey is live, featuring a monorepo tools sectionVote for us
Create a framework package that uses Nx CLI.
Create an executable that initializes an Nx workspace with {my-plugin}'s preset:
1nx g @nx/plugin:create-package create-my-plugin --project my-plugin
21nx generate create-package ...
2By default, Nx will search for create-package in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/plugin:create-package ...
2Show what will be generated without writing to disk:
1nx g create-package ... --dry-run
2create-.+|^@.+/create(?:-.+)?The package name of cli, e.g. create-framework-package. Note this must be a valid NPM name to be published.
The name of the generator project.
tsctsc, swcThe compiler used by the build and test targets.
A directory where the app is placed.
The name of the e2e project.
eslinteslintThe tool to use for running lint checks.
as-provided, derivedWhether to generate the project name and root directory as provided (as-provided) or generate them composing their values and taking the configured layout into account (derived).
Add tags to the library (used for linting).
jestjest, noneTest runner to use for unit tests.
falseSkip formatting files.