{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "id": "https://angular.io/schemas/cli-1/schema",
  "title": "Angular CLI Configuration",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "version": {
      "$ref": "#/definitions/fileVersion"
    },
    "cli": {
      "$ref": "#/definitions/cliOptions"
    },
    "schematics": {
      "$ref": "#/definitions/schematicOptions"
    },
    "newProjectRoot": {
      "type": "string",
      "description": "Path where new projects will be created."
    },
    "defaultProject": {
      "type": "string",
      "description": "Default project name used in commands."
    },
    "projects": {
      "type": "object",
      "patternProperties": {
        "^[a-zA-Z][.0-9a-zA-Z]*(-[.0-9a-zA-Z]*)*$": {
          "$ref": "#/definitions/project"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "required": [
    "version"
  ],
  "definitions": {
    "cliOptions": {
      "type": "object",
      "properties": {
        "defaultCollection": {
          "description": "The default schematics collection to use.",
          "type": "string"
        },
        "packageManager": {
          "description": "Specify which package manager tool to use.",
          "type": "string",
          "enum": [ "npm", "cnpm", "yarn", "pnpm" ]
        },
        "warnings": {
          "description": "Control CLI specific console warnings",
          "type": "object",
          "properties": {
            "versionMismatch": {
              "description": "Show a warning when the global version is newer than the local one.",
              "type": "boolean"
            },
            "typescriptMismatch": {
              "description": "Show a warning when the TypeScript version is incompatible.",
              "type": "boolean",
              "x-deprecated": true
            }
          }
        },
        "analytics": {
          "type": "boolean",
          "description": "Share anonymous usage data with the Angular Team at Google."
        }
      },
      "additionalProperties": false
    },
    "schematicOptions": {
      "type": "object",
      "properties": {
        "@schematics/angular:component": {
          "type": "object",
          "properties": {
            "changeDetection": {
              "description": "Specifies the change detection strategy.",
              "enum": ["Default", "OnPush"],
              "type": "string",
              "default": "Default",
              "alias": "c"
            },
            "entryComponent": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if the component is an entry component of declaring module."
            },
            "export": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if declaring module exports the component."
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a directory is created.",
              "default": false
            },
            "inlineStyle": {
              "description": "Specifies if the style will be in the ts file.",
              "type": "boolean",
              "default": false,
              "alias": "s"
            },
            "inlineTemplate": {
              "description": "Specifies if the template will be in the ts file.",
              "type": "boolean",
              "default": false,
              "alias": "t"
            },
            "module": {
              "type": "string",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            },
            "prefix": {
              "type": "string",
              "format": "html-selector",
              "description": "The prefix to apply to generated selectors.",
              "alias": "p"
            },
            "selector": {
              "type": "string",
              "format": "html-selector",
              "description": "The selector to use for the component."
            },
            "skipImport": {
              "type": "boolean",
              "description": "Flag to skip the module import.",
              "default": false
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "styleext": {
              "description": "The file extension to be used for style files.",
              "type": "string",
              "default": "css"
            },
            "style": {
              "description": "The file extension or preprocessor to use for style files.",
              "type": "string",
              "default": "css",
              "enum": [
                "css",
                "scss",
                "sass",
                "less",
                "styl"
              ]
            },
            "viewEncapsulation": {
              "description": "Specifies the view encapsulation strategy.",
              "enum": ["Emulated", "Native", "None", "ShadowDom"],
              "type": "string",
              "alias": "v"
            }
          }
        },
        "@schematics/angular:directive": {
          "type": "object",
          "properties": {
            "export": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if declaring module exports the directive."
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a directory is created.",
              "default": true
            },
            "module": {
              "type": "string",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            },
            "prefix": {
              "type": "string",
              "format": "html-selector",
              "description": "The prefix to apply to generated selectors.",
              "default": "app",
              "alias": "p"
            },
            "selector": {
              "type": "string",
              "format": "html-selector",
              "description": "The selector to use for the directive."
            },
            "skipImport": {
              "type": "boolean",
              "description": "Flag to skip the module import.",
              "default": false
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "skipTests": {
              "type": "boolean",
              "description": "When true, does not create test files.",
              "default": false
            }
          }
        },
        "@schematics/angular:module": {
          "type": "object",
          "properties": {
            "routing": {
              "type": "boolean",
              "description": "Generates a routing module.",
              "default": false
            },
            "routingScope": {
              "enum": ["Child", "Root"],
              "type": "string",
              "description": "The scope for the generated routing.",
              "default": "Child"
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a directory is created.",
              "default": false
            },
            "commonModule": {
              "type": "boolean",
              "description": "Flag to control whether the CommonModule is imported.",
              "default": true,
              "visible": false
            },
            "module": {
              "type": "string",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            }
          }
        },
        "@schematics/angular:service": {
          "type": "object",
          "properties": {
            "flat": {
              "type": "boolean",
              "default": true,
              "description": "Flag to indicate if a directory is created."
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "skipTests": {
              "type": "boolean",
              "description": "When true, does not create test files.",
              "default": false
            }
          }
        },
        "@schematics/angular:pipe": {
          "type": "object",
          "properties": {
            "flat": {
              "type": "boolean",
              "default": true,
              "description": "Flag to indicate if a directory is created."
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "skipTests": {
              "type": "boolean",
              "description": "When true, does not create test files.",
              "default": false
            },
            "skipImport": {
              "type": "boolean",
              "default": false,
              "description": "Allows for skipping the module import."
            },
            "module": {
              "type": "string",
              "default": "",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            },
            "export": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if declaring module exports the pipe."
            }
          }
        },
        "@schematics/angular:class": {
          "type": "object",
          "properties": {
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "skipTests": {
              "type": "boolean",
              "description": "When true, does not create test files.",
              "default": false
            }
          }
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "fileVersion": {
      "type": "integer",
      "description": "File format version",
      "minimum": 1
    },
    "project": {
      "type": "object",
      "properties": {
        "cli": {
          "$ref": "#/definitions/cliOptions"
        },
        "schematics": {
          "$ref": "#/definitions/schematicOptions"
        },
        "prefix": {
          "type": "string",
          "format": "html-selector",
          "description": "The prefix to apply to generated selectors."
        },
        "root": {
          "type": "string",
          "description": "Root of the project files."
        },
        "sourceRoot": {
          "type": "string",
          "description": "The root of the source files, assets and index.html file structure."
        },
        "projectType": {
          "type": "string",
          "description": "Project type.",
          "enum": [
            "application",
            "library"
          ]
        },
        "architect": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/project/definitions/target"
          }
        },
        "targets": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/project/definitions/target"
          }
        }
      },
      "required": [
        "root",
        "projectType"
      ],
      "anyOf": [
        {
          "required": ["architect"],
          "not": {
            "required": ["targets"]
          }
        },
        {
          "required": ["targets"],
          "not": {
            "required": ["architect"]
          }
        },
        {
          "not": {
            "required": [
              "targets",
              "architect"
            ]
          }
        }
      ],
      "additionalProperties": false,
      "patternProperties": {
        "^[a-z]{1,3}-.*": {}
      },
      "definitions": {
        "target": {
          "oneOf": [
            {
              "$comment": "Extendable target with custom builder",
              "type": "object",
              "properties": {
                "builder": {
                  "type": "string",
                  "description": "The builder used for this package.",
                  "not": {
                    "enum": [
                      "@angular-devkit/build-angular:app-shell",
                      "@angular-devkit/build-angular:browser",
                      "@angular-devkit/build-angular:dev-server",
                      "@angular-devkit/build-angular:extract-i18n",
                      "@angular-devkit/build-angular:karma",
                      "@angular-devkit/build-angular:protractor",
                      "@angular-devkit/build-angular:server",
                      "@angular-devkit/build-angular:tslint"
                    ]
                  }
                },
                "options": {
                  "type": "object"
                },
                "configurations": {
                  "type": "object",
                  "description": "A map of alternative target options.",
                  "additionalProperties": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "builder"
              ]
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:app-shell" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/appShell" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/appShell" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:browser" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/browser" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/browser" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:dev-server" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/devServer" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/devServer" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:extract-i18n" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:karma" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/karma" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/karma" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:protractor" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/protractor" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/protractor" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:server" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/server" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/server" }
                }
              }
            },
            {
              "type": "object",
              "properties": {
                "builder": { "const": "@angular-devkit/build-angular:tslint" },
                "options": { "$ref": "#/definitions/targetOptions/definitions/tslint" },
                "configurations": {
                  "type": "object",
                  "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
                }
              }
            }
          ]
        }
      }
    },
    "global": {
      "type": "object",
      "properties": {
        "$schema": {
          "type": "string",
          "format": "uri"
        },
        "version": {
          "$ref": "#/definitions/fileVersion"
        },
        "cli": {
          "$ref": "#/definitions/cliOptions"
        },
        "schematics": {
          "$ref": "#/definitions/schematicOptions"
        }
      },
      "required": [
        "version"
      ]
    },
    "targetOptions": {
      "type": "null",
      "definitions": {
        "appShell": {
          "description": "App Shell target options for Architect.",
          "type": "object",
          "properties": {
            "browserTarget": {
              "type": "string",
              "description": "Target to build."
            },
            "serverTarget": {
              "type": "string",
              "description": "Server target to use for rendering the app shell."
            },
            "appModuleBundle": {
              "type": "string",
              "description": "Script that exports the Server AppModule to render. This should be the main JavaScript outputted by the server target. By default we will resolve the outputPath of the serverTarget and find a bundle named 'main' in it (whether or not there's a hash tag)."
            },
            "route": {
              "type": "string",
              "description": "The route to render.",
              "default": "/"
            },
            "inputIndexPath": {
              "type": "string",
              "description": "The input path for the index.html file. By default uses the output index.html of the browser target."
            },
            "outputIndexPath": {
              "type": "string",
              "description": "The output path of the index.html file. By default will overwrite the input file."
            }
          },
          "additionalProperties": false
        },
        "browser": {
          "title": "Webpack browser schema for Architect.",
          "description": "Browser target options",
          "properties": {
            "assets": {
              "type": "array",
              "description": "List of static application assets.",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/browser/definitions/assetPattern"
              }
            },
            "main": {
              "type": "string",
              "description": "The name of the main entry-point file."
            },
            "polyfills": {
              "type": "string",
              "description": "The name of the polyfills file."
            },
            "tsConfig": {
              "type": "string",
              "description": "The name of the TypeScript configuration file."
            },
            "scripts": {
              "description": "Global scripts to be included in the build.",
              "type": "array",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
              }
            },
            "styles": {
              "description": "Global styles to be included in the build.",
              "type": "array",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
              }
            },
            "stylePreprocessorOptions": {
              "description": "Options to pass to style preprocessors.",
              "type": "object",
              "properties": {
                "includePaths": {
                  "description": "Paths to include. Paths will be resolved to project root.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "default": []
                }
              },
              "additionalProperties": false
            },
            "optimization": {
              "description": "Enables optimization of the build output.",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "Enables optimization of the scripts output.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "Enables optimization of the styles output.",
                      "default": true
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "fileReplacements": {
              "description": "Replace files with other files in the build.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/browser/definitions/fileReplacement"
              },
              "default": []
            },
            "outputPath": {
              "type": "string",
              "description": "Path where output will be placed."
            },
            "resourcesOutputPath": {
              "type": "string",
              "description": "The path where style resources will be placed, relative to outputPath."
            },
            "aot": {
              "type": "boolean",
              "description": "Build using Ahead of Time compilation.",
              "default": false
            },
            "sourceMap": {
              "description": "Output sourcemaps.",
              "default": true,
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all scripts.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all styles.",
                      "default": true
                    },
                    "hidden": {
                      "type": "boolean",
                      "description": "Output sourcemaps used for error reporting tools.",
                      "default": false
                    },
                    "vendor": {
                      "type": "boolean",
                      "description": "Resolve vendor packages sourcemaps.",
                      "default": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "vendorSourceMap": {
              "type": "boolean",
              "description": "Resolve vendor packages sourcemaps.",
              "default": false
            },
            "evalSourceMap": {
              "type": "boolean",
              "description": "Output in-file eval sourcemaps.",
              "default": false
            },
            "vendorChunk": {
              "type": "boolean",
              "description": "Use a separate bundle containing only vendor libraries.",
              "default": true
            },
            "commonChunk": {
              "type": "boolean",
              "description": "Use a separate bundle containing code used across multiple bundles.",
              "default": true
            },
            "baseHref": {
              "type": "string",
              "description": "Base url for the application being built."
            },
            "deployUrl": {
              "type": "string",
              "description": "URL where files will be deployed."
            },
            "verbose": {
              "type": "boolean",
              "description": "Adds more details to output logging.",
              "default": false
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console while building.",
              "default": true
            },
            "i18nFile": {
              "type": "string",
              "description": "Localization file to use for i18n."
            },
            "i18nFormat": {
              "type": "string",
              "description": "Format of the localization file specified with --i18n-file."
            },
            "i18nLocale": {
              "type": "string",
              "description": "Locale to use for i18n."
            },
            "i18nMissingTranslation": {
              "type": "string",
              "description": "How to handle missing translations for i18n."
            },
            "extractCss": {
              "type": "boolean",
              "description": "Extract css from global styles onto css files instead of js ones.",
              "default": false
            },
            "watch": {
              "type": "boolean",
              "description": "Run build when files change.",
              "default": false
            },
            "outputHashing": {
              "type": "string",
              "description": "Define the output filename cache-busting hashing mode.",
              "default": "none",
              "enum": [
                "none",
                "all",
                "media",
                "bundles"
              ]
            },
            "poll": {
              "type": "number",
              "description": "Enable and define the file watching poll time period in milliseconds."
            },
            "deleteOutputPath": {
              "type": "boolean",
              "description": "Delete the output path before building.",
              "default": true
            },
            "preserveSymlinks": {
              "type": "boolean",
              "description": "Do not use the real path when resolving modules.",
              "default": false
            },
            "extractLicenses": {
              "type": "boolean",
              "description": "Extract all licenses in a separate file, in the case of production builds only.",
              "default": true
            },
            "showCircularDependencies": {
              "type": "boolean",
              "description": "Show circular dependency warnings on builds.",
              "default": true
            },
            "buildOptimizer": {
              "type": "boolean",
              "description": "Enables @angular-devkit/build-optimizer optimizations when using the 'aot' option.",
              "default": false
            },
            "namedChunks": {
              "type": "boolean",
              "description": "Use file name for lazy loaded chunks.",
              "default": true
            },
            "subresourceIntegrity": {
              "type": "boolean",
              "description": "Enables the use of subresource integrity validation.",
              "default": false
            },
            "serviceWorker": {
              "type": "boolean",
              "description": "Generates a service worker config for production builds.",
              "default": false
            },
            "ngswConfigPath": {
              "type": "string",
              "description": "Path to ngsw-config.json."
            },
            "skipAppShell": {
              "type": "boolean",
              "description": "Flag to prevent building an app shell.",
              "default": false
            },
            "index": {
              "type": "string",
              "description": "The name of the index HTML file."
            },
            "statsJson": {
              "type": "boolean",
              "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
              "default": false
            },
            "forkTypeChecker": {
              "type": "boolean",
              "description": "Run the TypeScript type checker in a forked process.",
              "default": true
            },
            "lazyModules": {
              "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "budgets": {
              "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/browser/definitions/budget"
              },
              "default": []
            },
            "es5BrowserSupport": {
              "description": "Enables conditionally loaded ES2015 polyfills.",
              "type": "boolean",
              "default": false
            },
            "rebaseRootRelativeCssUrls": {
              "description": "Change root relative URLs in stylesheets to include base HREF and deploy URL. Use only for compatibility and transition. The behavior of this option is non-standard and will be removed in the next major release.",
              "type": "boolean",
              "default": false,
              "x-deprecated": true
            },
            "webWorkerTsConfig": {
              "type": "string",
              "description": "TypeScript configuration for Web Worker modules."
            }
          },
          "additionalProperties": false,
          "definitions": {
            "assetPattern": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "glob": {
                      "type": "string",
                      "description": "The pattern to match."
                    },
                    "input": {
                      "type": "string",
                      "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
                    },
                    "output": {
                      "type": "string",
                      "description": "Absolute path within the output."
                    },
                    "ignore": {
                      "description": "An array of globs to ignore.",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "glob",
                    "input",
                    "output"
                  ]
                },
                {
                  "type": "string",
                  "description": "The file to include."
                }
              ]
            },
            "fileReplacement": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string"
                    },
                    "replaceWith": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "src",
                    "replaceWith"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "replace": {
                      "type": "string"
                    },
                    "with": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "replace",
                    "with"
                  ]
                }
              ]
            },
            "extraEntryPoint": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "input": {
                      "type": "string",
                      "description": "The file to include."
                    },
                    "bundleName": {
                      "type": "string",
                      "description": "The bundle name for this extra entry point."
                    },
                    "lazy": {
                      "type": "boolean",
                      "description": "If the bundle will be lazy loaded.",
                      "default": false
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "input"
                  ]
                },
                {
                  "type": "string",
                  "description": "The file to include."
                }
              ]
            },
            "budget": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The type of budget.",
                  "enum": [
                    "all",
                    "allScript",
                    "any",
                    "anyScript",
                    "bundle",
                    "initial"
                  ]
                },
                "name": {
                  "type": "string",
                  "description": "The name of the bundle."
                },
                "baseline": {
                  "type": "string",
                  "description": "The baseline size for comparison."
                },
                "maximumWarning": {
                  "type": "string",
                  "description": "The maximum threshold for warning relative to the baseline."
                },
                "maximumError": {
                  "type": "string",
                  "description": "The maximum threshold for error relative to the baseline."
                },
                "minimumWarning": {
                  "type": "string",
                  "description": "The minimum threshold for warning relative to the baseline."
                },
                "minimumError": {
                  "type": "string",
                  "description": "The minimum threshold for error relative to the baseline."
                },
                "warning": {
                  "type": "string",
                  "description": "The threshold for warning relative to the baseline (min & max)."
                },
                "error": {
                  "type": "string",
                  "description": "The threshold for error relative to the baseline (min & max)."
                }
              },
              "additionalProperties": false,
              "required": [
                "type"
              ]
            }
          }
        },
        "devServer": {
          "description": "Dev Server target options for Architect.",
          "type": "object",
          "properties": {
            "browserTarget": {
              "type": "string",
              "description": "Target to serve."
            },
            "port": {
              "type": "number",
              "description": "Port to listen on.",
              "default": 4200
            },
            "host": {
              "type": "string",
              "description": "Host to listen on.",
              "default": "localhost"
            },
            "proxyConfig": {
              "type": "string",
              "description": "Proxy configuration file."
            },
            "ssl": {
              "type": "boolean",
              "description": "Serve using HTTPS.",
              "default": false
            },
            "sslKey": {
              "type": "string",
              "description": "SSL key to use for serving HTTPS."
            },
            "sslCert": {
              "type": "string",
              "description": "SSL certificate to use for serving HTTPS."
            },
            "open": {
              "type": "boolean",
              "description": "When true, open the live-reload URL in default browser.",
              "default": false,
              "alias": "o"
            },
            "liveReload": {
              "type": "boolean",
              "description": "When true, reload the page on change using live-reload.",
              "default": true
            },
            "publicHost": {
              "type": "string",
              "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
            },
            "servePath": {
              "type": "string",
              "description": "The pathname where the app will be served."
            },
            "disableHostCheck": {
              "type": "boolean",
              "description": "When true, don't verify that connected clients are part of allowed hosts.",
              "default": false
            },
            "hmr": {
              "type": "boolean",
              "description": "When true, enable hot module replacement.",
              "default": false
            },
            "watch": {
              "type": "boolean",
              "description": "When true, rebuild on change.",
              "default": true
            },
            "hmrWarning": {
              "type": "boolean",
              "description": "When true, show a warning when the --hmr option is enabled.",
              "default": true
            },
            "servePathDefaultWarning": {
              "type": "boolean",
              "description": "When true, show a warning when deploy-url/base-href use unsupported serve path values.",
              "default": true
            },
            "optimization": {
              "description": "Enable optimization of the build output.",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "When true, enable optimization of the scripts output.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "When true, enable optimization of the styles output.",
                      "default": true
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "aot": {
              "type": "boolean",
              "description": "Build using ahead-of-time compilation."
            },
            "sourceMap": {
              "description": "When true, output sourcemaps.",
              "default": true,
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "When true, output sourcemaps for all scripts.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "When true, output sourcemaps for all styles.",
                      "default": true
                    },
                    "vendor": {
                      "type": "boolean",
                      "description": "When true, resolve vendor packages sourcemaps.",
                      "default": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "vendorSourceMap": {
              "type": "boolean",
              "description": "When true, resolve vendor packages sourcemaps.",
              "default": false
            },
            "evalSourceMap": {
              "type": "boolean",
              "description": "When true, output in-file eval sourcemaps."
            },
            "vendorChunk": {
              "type": "boolean",
              "description": "When true, use a separate bundle containing only vendor libraries."
            },
            "commonChunk": {
              "type": "boolean",
              "description": "When true, use a separate bundle containing code used across multiple bundles."
            },
            "baseHref": {
              "type": "string",
              "description": "Base url for the application being built."
            },
            "deployUrl": {
              "type": "string",
              "description": "URL where files will be deployed."
            },
            "verbose": {
              "type": "boolean",
              "description": "When true, add more details to output logging."
            },
            "progress": {
              "type": "boolean",
              "description": "When true, log progress to the console while building."
            }
          },
          "additionalProperties": false
        },
        "extracti18n": {
          "description": "Extract i18n target options for Architect.",
          "type": "object",
          "properties": {
            "browserTarget": {
              "type": "string",
              "description": "Target to extract from."
            },
            "i18nFormat": {
              "type": "string",
              "description": "Output format for the generated file.",
              "default": "xlf",
              "enum": [
                "xmb",
                "xlf",
                "xlif",
                "xliff",
                "xlf2",
                "xliff2"
              ]
            },
            "i18nLocale": {
              "type": "string",
              "description": "Specifies the source language of the application."
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console.",
              "default": true
            },
            "outputPath": {
              "type": "string",
              "description": "Path where output will be placed."
            },
            "outFile": {
              "type": "string",
              "description": "Name of the file to output."
            }
          },
          "additionalProperties": false
        },
        "karma": {
          "description": "Karma target options for Architect.",
          "type": "object",
          "properties": {
            "main": {
              "type": "string",
              "description": "The name of the main entry-point file."
            },
            "tsConfig": {
              "type": "string",
              "description": "The name of the TypeScript configuration file."
            },
            "karmaConfig": {
              "type": "string",
              "description": "The name of the Karma configuration file."
            },
            "polyfills": {
              "type": "string",
              "description": "The name of the polyfills file."
            },
            "assets": {
              "type": "array",
              "description": "List of static application assets.",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/karma/definitions/assetPattern"
              }
            },
            "scripts": {
              "description": "Global scripts to be included in the build.",
              "type": "array",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
              }
            },
            "styles": {
              "description": "Global styles to be included in the build.",
              "type": "array",
              "default": [],
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
              }
            },
            "stylePreprocessorOptions": {
              "description": "Options to pass to style preprocessors",
              "type": "object",
              "properties": {
                "includePaths": {
                  "description": "Paths to include. Paths will be resolved to project root.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "default": []
                }
              },
              "additionalProperties": false
            },
            "environment": {
              "type": "string",
              "description": "Defines the build environment."
            },
            "sourceMap": {
              "description": "Output sourcemaps.",
              "default": true,
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all scripts.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all styles.",
                      "default": true
                    },
                    "vendor": {
                      "type": "boolean",
                      "description": "Resolve vendor packages sourcemaps.",
                      "default": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console while building.",
              "default": true
            },
            "watch": {
              "type": "boolean",
              "description": "Run build when files change.",
              "default": true
            },
            "poll": {
              "type": "number",
              "description": "Enable and define the file watching poll time period in milliseconds."
            },
            "preserveSymlinks": {
              "type": "boolean",
              "description": "Do not use the real path when resolving modules.",
              "default": false
            },
            "browsers": {
              "type": "string",
              "description": "Override which browsers tests are run against."
            },
            "codeCoverage": {
              "type": "boolean",
              "description": "Output a code coverage report.",
              "default": false
            },
            "codeCoverageExclude": {
              "type": "array",
              "description": "Globs to exclude from code coverage.",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "fileReplacements": {
              "description": "Replace files with other files in the build.",
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "src": {
                        "type": "string"
                      },
                      "replaceWith": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "src",
                      "replaceWith"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "replace": {
                        "type": "string"
                      },
                      "with": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "replace",
                      "with"
                    ]
                  }
                ]
              },
              "default": []
            },
            "reporters": {
              "type": "array",
              "description": "Karma reporters to use. Directly passed to the karma runner.",
              "items": {
                "type": "string"
              }
            },
            "webWorkerTsConfig": {
              "type": "string",
              "description": "TypeScript configuration for Web Worker modules."
            }
          },
          "additionalProperties": false,
          "definitions": {
            "assetPattern": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "glob": {
                      "type": "string",
                      "description": "The pattern to match."
                    },
                    "input": {
                      "type": "string",
                      "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
                    },
                    "output": {
                      "type": "string",
                      "description": "Absolute path within the output."
                    },
                    "ignore": {
                      "description": "An array of globs to ignore.",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "glob",
                    "input",
                    "output"
                  ]
                },
                {
                  "type": "string",
                  "description": "The file to include."
                }
              ]
            },
            "extraEntryPoint": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "input": {
                      "type": "string",
                      "description": "The file to include."
                    },
                    "bundleName": {
                      "type": "string",
                      "description": "The bundle name for this extra entry point."
                    },
                    "lazy": {
                      "type": "boolean",
                      "description": "If the bundle will be lazy loaded.",
                      "default": false
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "input"
                  ]
                },
                {
                  "type": "string",
                  "description": "The file to include."
                }
              ]
            }
          }
        },
        "protractor": {
          "description": "Protractor target options for Architect.",
          "type": "object",
          "properties": {
            "protractorConfig": {
              "type": "string",
              "description": "The name of the Protractor configuration file."
            },
            "devServerTarget": {
              "type": "string",
              "description": "Dev server target to run tests against."
            },
            "specs": {
              "type": "array",
              "description": "Override specs in the protractor config.",
              "default": [],
              "items": {
                "type": "string",
                "description": "Spec name."
              }
            },
            "suite": {
              "type": "string",
              "description": "Override suite in the protractor config."
            },
            "elementExplorer": {
              "type": "boolean",
              "description": "Start Protractor's Element Explorer for debugging.",
              "default": false
            },
            "webdriverUpdate": {
              "type": "boolean",
              "description": "Try to update webdriver.",
              "default": true
            },
            "serve": {
              "type": "boolean",
              "description": "Compile and Serve the app.",
              "default": true
            },
            "port": {
              "type": "number",
              "description": "The port to use to serve the application."
            },
            "host": {
              "type": "string",
              "description": "Host to listen on.",
              "default": "localhost"
            },
            "baseUrl": {
              "type": "string",
              "description": "Base URL for protractor to connect to."
            }
          },
          "additionalProperties": false
        },
        "server": {
          "title": "Angular Webpack Architect Builder Schema",
          "properties": {
            "main": {
              "type": "string",
              "description": "The name of the main entry-point file."
            },
            "tsConfig": {
              "type": "string",
              "default": "tsconfig.app.json",
              "description": "The name of the TypeScript configuration file."
            },
            "stylePreprocessorOptions": {
              "description": "Options to pass to style preprocessors",
              "type": "object",
              "properties": {
                "includePaths": {
                  "description": "Paths to include. Paths will be resolved to project root.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "default": []
                }
              },
              "additionalProperties": false
            },
            "optimization": {
              "description": "Enables optimization of the build output.",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "Enables optimization of the scripts output.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "Enables optimization of the styles output.",
                      "default": true
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "fileReplacements": {
              "description": "Replace files with other files in the build.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/targetOptions/definitions/server/definitions/fileReplacement"
              },
              "default": []
            },
            "outputPath": {
              "type": "string",
              "description": "Path where output will be placed."
            },
            "resourcesOutputPath": {
              "type": "string",
              "description": "The path where style resources will be placed, relative to outputPath."
            },
            "sourceMap": {
              "description": "Output sourcemaps.",
              "default": true,
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scripts": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all scripts.",
                      "default": true
                    },
                    "styles": {
                      "type": "boolean",
                      "description": "Output sourcemaps for all styles.",
                      "default": true
                    },
                    "hidden": {
                      "type": "boolean",
                      "description": "Output sourcemaps used for error reporting tools.",
                      "default": false
                    },
                    "vendor": {
                      "type": "boolean",
                      "description": "Resolve vendor packages sourcemaps.",
                      "default": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "vendorSourceMap": {
              "type": "boolean",
              "description": "Resolve vendor packages sourcemaps.",
              "default": false
            },
            "evalSourceMap": {
              "type": "boolean",
              "description": "Output in-file eval sourcemaps.",
              "default": false
            },
            "vendorChunk": {
              "type": "boolean",
              "description": "Use a separate bundle containing only vendor libraries.",
              "default": true
            },
            "commonChunk": {
              "type": "boolean",
              "description": "Use a separate bundle containing code used across multiple bundles.",
              "default": true
            },
            "verbose": {
              "type": "boolean",
              "description": "Adds more details to output logging.",
              "default": false
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console while building.",
              "default": true
            },
            "i18nFile": {
              "type": "string",
              "description": "Localization file to use for i18n."
            },
            "i18nFormat": {
              "type": "string",
              "description": "Format of the localization file specified with --i18n-file."
            },
            "i18nLocale": {
              "type": "string",
              "description": "Locale to use for i18n."
            },
            "i18nMissingTranslation": {
              "type": "string",
              "description": "How to handle missing translations for i18n."
            },
            "outputHashing": {
              "type": "string",
              "description": "Define the output filename cache-busting hashing mode.",
              "default": "none",
              "enum": [
                "none",
                "all",
                "media",
                "bundles"
              ]
            },
            "deleteOutputPath": {
              "type": "boolean",
              "description": "delete-output-path",
              "default": true
            },
            "preserveSymlinks": {
              "type": "boolean",
              "description": "Do not use the real path when resolving modules.",
              "default": false
            },
            "extractLicenses": {
              "type": "boolean",
              "description": "Extract all licenses in a separate file, in the case of production builds only.",
              "default": true
            },
            "showCircularDependencies": {
              "type": "boolean",
              "description": "Show circular dependency warnings on builds.",
              "default": true
            },
            "namedChunks": {
              "type": "boolean",
              "description": "Use file name for lazy loaded chunks.",
              "default": true
            },
            "bundleDependencies": {
              "type": "string",
              "description": "Available on server platform only. Which external dependencies to bundle into the module. By default, all of node_modules will be kept as requires.",
              "default": "none",
              "enum": [
                "none",
                "all"
              ]
            },
            "statsJson": {
              "type": "boolean",
              "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
              "default": false
            },
            "forkTypeChecker": {
              "type": "boolean",
              "description": "Run the TypeScript type checker in a forked process.",
              "default": true
            },
            "lazyModules": {
              "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          },
          "additionalProperties": false,
          "definitions": {
            "fileReplacement": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string"
                    },
                    "replaceWith": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "src",
                    "replaceWith"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "replace": {
                      "type": "string"
                    },
                    "with": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "replace",
                    "with"
                  ]
                }
              ]
            }
          }
        },
        "tslint": {
          "description": "TSlint target options for Architect.",
          "type": "object",
          "properties": {
            "tslintConfig": {
              "type": "string",
              "description": "The name of the TSLint configuration file."
            },
            "tsConfig": {
              "description": "The name of the TypeScript configuration file.",
              "oneOf": [
                { "type": "string" },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "fix": {
              "type": "boolean",
              "description": "Fixes linting errors (may overwrite linted files).",
              "default": false
            },
            "typeCheck": {
              "type": "boolean",
              "description": "Controls the type check for linting.",
              "default": false
            },
            "force": {
              "type": "boolean",
              "description": "Succeeds even if there was linting errors.",
              "default": false
            },
            "silent": {
              "type": "boolean",
              "description": "Show output text.",
              "default": false
            },
            "format": {
              "type": "string",
              "description": "Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist, codeFrame).",
              "default": "prose",
              "anyOf": [
                {
                  "enum": [
                    "checkstyle",
                    "codeFrame",
                    "filesList",
                    "json",
                    "junit",
                    "msbuild",
                    "pmd",
                    "prose",
                    "stylish",
                    "tap",
                    "verbose",
                    "vso"
                  ]
                },
                { "minLength": 1 }
              ]
            },
            "exclude": {
              "type": "array",
              "description": "Files to exclude from linting.",
              "default": [],
              "items": {
                "type": "string"
              }
            },
            "files": {
              "type": "array",
              "description": "Files to include in linting.",
              "default": [],
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        }
      }
    }
  }
}
