1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "NxWorkspaceMove",
|
4 | "cli": "nx",
|
5 | "title": "Nx Move",
|
6 | "description": "Move a project to another folder in the workspace.",
|
7 | "type": "object",
|
8 | "examples": [
|
9 | {
|
10 | "command": "nx g @nrwl/workspace:move --project my-feature-lib --destination shared/my-feature-lib",
|
11 | "description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`"
|
12 | }
|
13 | ],
|
14 | "properties": {
|
15 | "projectName": {
|
16 | "type": "string",
|
17 | "alias": "project",
|
18 | "description": "The name of the project to move.",
|
19 | "x-dropdown": "projects"
|
20 | },
|
21 | "destination": {
|
22 | "type": "string",
|
23 | "description": "The folder to move the project into.",
|
24 | "$default": {
|
25 | "$source": "argv",
|
26 | "index": 0
|
27 | }
|
28 | },
|
29 | "importPath": {
|
30 | "type": "string",
|
31 | "description": "The new import path to use in the `tsconfig.base.json`."
|
32 | },
|
33 | "updateImportPath": {
|
34 | "type": "boolean",
|
35 | "description": "Should the generator update the import path to reflect the new location?",
|
36 | "default": true
|
37 | },
|
38 | "skipFormat": {
|
39 | "type": "boolean",
|
40 | "aliases": ["skip-format"],
|
41 | "description": "Skip formatting files.",
|
42 | "default": false
|
43 | }
|
44 | },
|
45 | "required": ["projectName", "destination"]
|
46 | }
|