<!-- 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 <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: Colum Ferry <cferry09@gmail.com> Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
63 lines
2.0 KiB
JSON
63 lines
2.0 KiB
JSON
{
|
|
"name": "move",
|
|
"factory": "./src/generators/move/move",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxWorkspaceMove",
|
|
"cli": "nx",
|
|
"title": "Nx Move",
|
|
"description": "Move a project to another folder in the workspace.",
|
|
"type": "object",
|
|
"examples": [
|
|
{
|
|
"command": "nx g @nx/workspace:move --project my-feature-lib --destination shared/my-feature-lib",
|
|
"description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`"
|
|
}
|
|
],
|
|
"properties": {
|
|
"projectName": {
|
|
"type": "string",
|
|
"alias": "project",
|
|
"description": "The name of the project to move.",
|
|
"x-dropdown": "projects"
|
|
},
|
|
"newProjectName": {
|
|
"type": "string",
|
|
"alias": "project",
|
|
"description": "The new name of the project after the move.",
|
|
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
"x-priority": "important"
|
|
},
|
|
"destination": {
|
|
"type": "string",
|
|
"description": "The folder to move the project into.",
|
|
"$default": { "$source": "argv", "index": 0 }
|
|
},
|
|
"importPath": {
|
|
"type": "string",
|
|
"description": "The new import path to use in the `tsconfig.base.json`."
|
|
},
|
|
"updateImportPath": {
|
|
"type": "boolean",
|
|
"description": "Should the generator update the import path to reflect the new location?",
|
|
"default": true
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"aliases": ["skip-format"],
|
|
"description": "Skip formatting files.",
|
|
"default": false,
|
|
"x-priority": "internal"
|
|
}
|
|
},
|
|
"required": ["projectName", "destination"],
|
|
"presets": []
|
|
},
|
|
"aliases": ["mv"],
|
|
"description": "Move an application or library to another folder.",
|
|
"implementation": "/packages/workspace/src/generators/move/move.ts",
|
|
"hidden": false,
|
|
"path": "/packages/workspace/src/generators/move/schema.json",
|
|
"type": "generator"
|
|
}
|