nx/packages/workspace/generators.json
MaxKless 5bbaffbda8
feat(core): add metagenerator for convert-to-inferred (#27672)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
The DX to migrate to project crystal isn't great right now - people have
to run `convert-to-inferred` generators manually.

## Expected Behavior
We should provide a smoother way to migrate, so we introduced an
`@nx/workspace:infer-targets` generator that can handle multiple
conversions at once, either for the whole workspace or at a project
level.

---------

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2024-09-12 20:06:45 -04:00

65 lines
2.5 KiB
JSON

{
"name": "nx/workspace",
"version": "0.1",
"generators": {
"preset": {
"factory": "./src/generators/preset/preset#presetGenerator",
"schema": "./src/generators/preset/schema.json",
"description": "Create application in an empty workspace.",
"x-use-standalone-layout": true,
"hidden": true
},
"move": {
"factory": "./src/generators/move/move#moveGeneratorInternal",
"schema": "./src/generators/move/schema.json",
"aliases": ["mv"],
"description": "Move an application or library to another folder."
},
"remove": {
"factory": "./src/generators/remove/remove#removeGenerator",
"schema": "./src/generators/remove/schema.json",
"aliases": ["rm"],
"description": "Remove an application or library."
},
"convert-to-monorepo": {
"factory": "./src/generators/convert-to-monorepo/convert-to-monorepo",
"schema": "./src/generators/convert-to-monorepo/schema.json",
"description": "Convert a Nx project to a monorepo."
},
"new": {
"factory": "./src/generators/new/new#newGenerator",
"schema": "./src/generators/new/schema.json",
"description": "Create a workspace.",
"hidden": true
},
"run-commands": {
"factory": "./src/generators/run-commands/run-commands#runCommandsGenerator",
"schema": "./src/generators/run-commands/schema.json",
"aliases": ["run-command", "target"],
"description": "Generates a target to run any command in the terminal."
},
"fix-configuration": {
"factory": "./src/generators/convert-to-nx-project/convert-to-nx-project#convertToNxProjectGenerator",
"schema": "./src/generators/convert-to-nx-project/schema.json",
"aliases": ["convert-to-nx-project"],
"description": "Fixes projects configuration"
},
"npm-package": {
"factory": "./src/generators/npm-package/npm-package#npmPackageGeneratorInternal",
"schema": "./src/generators/npm-package/schema.json",
"description": "Create a minimal NPM package.",
"x-type": "library"
},
"ci-workflow": {
"factory": "./src/generators/ci-workflow/ci-workflow#ciWorkflowGenerator",
"schema": "./src/generators/ci-workflow/schema.json",
"description": "Generate a CI workflow."
},
"infer-targets": {
"factory": "./src/generators/infer-targets/infer-targets",
"schema": "./src/generators/infer-targets/schema.json",
"description": "Convert Nx projects to use inferred targets."
}
}
}