@nx/plugin:migration
Create a Migration for an Nx Plugin.
Create a Migration for an Nx Plugin.
nx generate migration ...
By default, Nx will search for migration
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/plugin:migration ...
Show what will be generated without writing to disk:
nx g migration ... --dry-run
Adds a new migration to the project my-plugin
, which will be triggered when migrating to version 1.0.0 or above from a previous version.:
nx g migration my-migration --project=my-plugin --version=1.0.0
The name of the project.
Version to use for the migration.
Migration name.
Migration description.
false
Whether or not to include package.json
updates.
false
Do not eslint configuration for plugin json files.