angular.json

620 阅读5分钟

newProjectRoot ng g lib ** 的根目录

projects 项目

  • cli
    • defaultCollection
    • packageManager
    • warnings
  • schematics
    • @schematics/angular:component
    • @schematics/angular:directive
    • @schematics/angular:module
    • @schematics/angular:service
    • @schematics/angular:pipe
    • @schematics/angular:class
  • prefix
  • root
  • sourceRoot
  • projectType
  • architect
    • builder
    • options
    • configurations

defaultProject 默认项目

{
  "$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" ]
        },
        "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"
            }
          }
        }
      },
      "additionalProperties": false
    },
    "schematicOptions": {
      "type": "object",
      "properties": {
        "@schematics/angular:component": {
          "type": "object",
          "properties": {
            "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"
            },
            "viewEncapsulation": {
              "description": "Specifies the view encapsulation strategy.",
              "enum": ["Emulated", "Native", "None"],
              "type": "string",
              "alias": "v"
            },
            "changeDetection": {
              "description": "Specifies the change detection strategy.",
              "enum": ["Default", "OnPush"],
              "type": "string",
              "default": "Default",
              "alias": "c"
            },
            "prefix": {
              "type": "string",
              "format": "html-selector",
              "description": "The prefix to apply to generated selectors.",
              "alias": "p"
            },
            "styleext": {
              "description": "The file extension to be used for style files.",
              "type": "string",
              "default": "css"
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a dir is created.",
              "default": false
            },
            "skipImport": {
              "type": "boolean",
              "description": "Flag to skip the module import.",
              "default": false
            },
            "selector": {
              "type": "string",
              "format": "html-selector",
              "description": "The selector to use for the component."
            },
            "module":  {
              "type": "string",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            },
            "export": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if declaring module exports the component."
            }
          }
        },
        "@schematics/angular:directive": {
          "type": "object",
          "properties": {
            "prefix": {
              "type": "string",
              "format": "html-selector",
              "description": "The prefix to apply to generated selectors.",
              "default": "app",
              "alias": "p"
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "skipImport": {
              "type": "boolean",
              "description": "Flag to skip the module import.",
              "default": false
            },
            "selector": {
              "type": "string",
              "format": "html-selector",
              "description": "The selector to use for the directive."
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a dir is created.",
              "default": true
            },
            "module":  {
              "type": "string",
              "description": "Allows specification of the declaring module.",
              "alias": "m"
            },
            "export": {
              "type": "boolean",
              "default": false,
              "description": "Specifies if declaring module exports the directive."
            }
          }
        },
        "@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"
            },
            "spec": {
              "type": "boolean",
              "description": "Specifies if a spec file is generated.",
              "default": true
            },
            "flat": {
              "type": "boolean",
              "description": "Flag to indicate if a dir 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 dir is created."
            },
            "spec": {
              "type": "boolean",
              "default": true,
              "description": "Specifies if a spec file is generated."
            }
          }
        },
        "@schematics/angular:pipe": {
          "type": "object",
          "properties": {
            "flat": {
              "type": "boolean",
              "default": true,
              "description": "Flag to indicate if a dir is created."
            },
            "spec": {
              "type": "boolean",
              "default": true,
              "description": "Specifies if a spec file is generated."
            },
            "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",
              "default": true,
              "description": "Specifies if a spec file is generated."
            }
          }
        }
      },
      "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"
          }
        }
      },
      "required": [
        "root",
        "projectType"
      ],
      "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 Build Facade.",
          "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 Build Facade.",
          "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": {
              "type": "boolean",
              "description": "Defines the optimization level of the build.",
              "default": false
            },
            "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."
            },
            "aot": {
              "type": "boolean",
              "description": "Build using Ahead of Time compilation.",
              "default": false
            },
            "sourceMap": {
              "type": "boolean",
              "description": "Output sourcemaps.",
              "default": true
            },
            "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
            },
            "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' or https: //webpack.github.io/analyse.",
              "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": []
            }
          },
          "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."
                    }
                  },
                  "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 Build Facade.",
          "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": "Opens the url in default browser.",
              "default": false,
              "alias": "o"
            },
            "liveReload": {
              "type": "boolean",
              "description": "Whether to reload the page on change, using live-reload.",
              "default": true
            },
            "publicHost": {
              "type": "string",
              "description": "Specify the URL that the browser client will use."
            },
            "servePath": {
              "type": "string",
              "description": "The pathname where the app will be served."
            },
            "disableHostCheck": {
              "type": "boolean",
              "description": "Don't verify connected clients are part of allowed hosts.",
              "default": false
            },
            "hmr": {
              "type": "boolean",
              "description": "Enable hot module replacement.",
              "default": false
            },
            "watch": {
              "type": "boolean",
              "description": "Rebuild on change.",
              "default": true
            },
            "hmrWarning": {
              "type": "boolean",
              "description": "Show a warning when the --hmr option is enabled.",
              "default": true
            },
            "servePathDefaultWarning": {
              "type": "boolean",
              "description": "Show a warning when deploy-url/base-href use unsupported serve path values.",
              "default": true
            },
            "optimization": {
              "type": "boolean",
              "description": "Defines the optimization level of the build."
            },
            "aot": {
              "type": "boolean",
              "description": "Build using Ahead of Time compilation."
            },
            "sourceMap": {
              "type": "boolean",
              "description": "Output sourcemaps."
            },
            "evalSourceMap": {
              "type": "boolean",
              "description": "Output in-file eval sourcemaps."
            },
            "vendorChunk": {
              "type": "boolean",
              "description": "Use a separate bundle containing only vendor libraries."
            },
            "commonChunk": {
              "type": "boolean",
              "description": "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": "Adds more details to output logging."
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console while building."
            }
          },
          "additionalProperties": false
        },
        "extracti18n": {
          "description": "Extract i18n target options for Build Facade.",
          "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."
            },
            "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 Build Facade.",
          "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": {
              "type": "boolean",
              "description": "Output sourcemaps.",
              "default": true
            },
            "progress": {
              "type": "boolean",
              "description": "Log progress to the console while building.",
              "default": true
            },
            "watch": {
              "type": "boolean",
              "description": "Run build when files change.",
              "default": false
            },
            "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": []
            }
          },
          "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."
                    }
                  },
                  "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 Build Facade.",
          "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": {
              "type": "boolean",
              "description": "Defines the optimization level of the build.",
              "default": false
            },
            "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."
            },
            "sourceMap": {
              "type": "boolean",
              "description": "Output sourcemaps.",
              "default": true
            },
            "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' or https: //webpack.github.io/analyse.",
              "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 Build Facade.",
          "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).",
              "default": "prose",
              "enum": [
                "prose",
                "json",
                "stylish",
                "verbose",
                "pmd",
                "msbuild",
                "checkstyle",
                "vso",
                "fileslist"
              ]
            },
            "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
        }
      }
    }
  }
}