@nx/plugin:create-package
Create a framework package that uses Nx CLI.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join 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
2
1nx generate create-package ...
2
By 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 ...
2
Show what will be generated without writing to disk:
1nx g create-package ... --dry-run
2
A directory where the app is placed.
create-.+|^@.+/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.
tsc
tsc
, swc
The compiler used by the build and test targets.
The name of the e2e project.
eslint
eslint
The tool to use for running lint checks.
Add tags to the library (used for linting).
jest
jest
, none
Test runner to use for unit tests.
false
Skip formatting files.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!