Back to Fluentui

migrate-converged-pkg

tools/workspace-plugin/src/generators/migrate-converged-pkg/README.md

4.40.2-hotfix21.7 KB
Original Source

migrate-converged-pkg

Workspace Generator for migrating converged packages to new DX (stage 1)[https://github.com/microsoft/fluentui/issues/18579]

<!-- toc --> <!-- tocstop -->

Usage

sh
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg ...

Show what will be generated without writing to disk:

sh
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg --dry-run

Examples

Run migration on package named @fluentui/example

sh
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg --name='@fluentui/example'

Run migration on all vNext packages

sh
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg --all

Get migration stats for how many packages have been migrated yet.

No actual migration will happen.

sh
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg --stats

Options

name

Type: string

Package/library name (needs to be full name of the package, scope included - e.g. @fluentui/<package-name>)

NOTE: will trigger CLI prompt if you didn't provide this option

Run migration on subset of packages:

To run migration on multiple packages you can specify a comma separated list of project names.

sh
# run migration on:
# - @fluentui/lib-zero
# - @fluentui/lib-one
# - @fluentui/lib-two
yarn nx g @fluentui/workspace-plugin:migrate-converged-pkg --name='@fluentui/lib-zero,@fluentui/lib-one,@fluentui/lib-two'

owner

Type: string

Add particular team to CODEOWNERS file

all

Type: boolean

Run batch migration on all vNext packages

stats

Type: boolean

Get stats for migration progress.