56 lines
1.8 KiB
JSON
56 lines
1.8 KiB
JSON
{
|
|
"name": "move",
|
|
"factory": "./src/generators/move/move#moveGenerator",
|
|
"schema": {
|
|
"$schema": "http://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 @nrwl/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"
|
|
},
|
|
"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#moveGenerator.ts",
|
|
"hidden": false,
|
|
"path": "/packages/workspace/src/generators/move/schema.json",
|
|
"type": "generator"
|
|
}
|