schema.json 1.3 KB
{
  "$schema": "http://json-schema.org/schema",
  "id": "SchematicsAngularWorkspace",
  "title": "Angular Workspace Options Schema",
  "type": "object",
  "properties": {
    "name": {
      "description": "The name of the workspace.",
      "type": "string",
      "format": "html-selector",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "newProjectRoot": {
      "description": "The path where new projects will be created.",
      "type": "string",
      "visible": "false"
    },
    "version": {
      "type": "string",
      "description": "The version of the Angular CLI to use.",
      "visible": false,
      "$default": {
        "$source": "ng-cli-version"
      }
    },
    "minimal": {
      "description": "When true, creates a workspace without any testing frameworks. (Use for learning purposes only.)",
      "type": "boolean",
      "default": false,
      "x-user-analytics": 14
    },
    "strict": {
      "description": "Creates a workspace with stricter TypeScript compiler options.",
      "type": "boolean",
      "default": false
    },
    "packageManager": {
      "description": "The package manager used to install dependencies.",
      "type": "string",
      "enum": ["npm", "yarn", "pnpm", "cnpm"]
    }
  },
  "required": [
    "name",
    "version"
  ]
}