56 lines
1.7 KiB
JSON

{
"name": "remove",
"factory": "./src/generators/remove/remove#removeGenerator",
"schema": {
"$schema": "http://json-schema.org/schema",
"$id": "NxWorkspaceRemove",
"cli": "nx",
"title": "Nx Remove",
"description": "Remove a project from the workspace.",
"type": "object",
"examples": [
{
"command": "nx g @nx/workspace:remove my-feature-lib",
"description": "Remove `my-feature-lib` from the workspace"
},
{
"command": "nx g @nx/workspace:remove my-feature-lib --forceRemove",
"description": "Force removal of `my-feature-lib` from the workspace"
}
],
"properties": {
"projectName": {
"type": "string",
"alias": "project",
"description": "The name of the project to remove.",
"$default": { "$source": "argv", "index": 0 }
},
"forceRemove": {
"type": "boolean",
"aliases": ["force-remove"],
"description": "When `true`, forces removal even if the project is still in use.",
"default": false
},
"skipFormat": {
"type": "boolean",
"aliases": ["skip-format"],
"description": "Skip formatting files.",
"default": false,
"x-priority": "internal"
},
"importPath": {
"type": "string",
"description": "The library name used at creation time"
}
},
"required": ["projectName"],
"presets": []
},
"aliases": ["rm"],
"description": "Remove an application or library.",
"implementation": "/packages/workspace/src/generators/remove/remove#removeGenerator.ts",
"hidden": false,
"path": "/packages/workspace/src/generators/remove/schema.json",
"type": "generator"
}