|
| 1 | +<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. --> |
| 2 | + |
| 3 | +# Angular CLI workspace file (angular.json) schema |
| 4 | + |
| 5 | +## Properties |
| 6 | + |
| 7 | +- **version** (`integer`): File format version. This is currently `"1"`. |
| 8 | + |
| 9 | +- **newProjectRoot** (`string`): Path where new projects will be created. |
| 10 | + |
| 11 | +- **defaultProject** (`string`): Default project name used in commands. |
| 12 | + |
| 13 | +- **cli**: Workspace configuration options for Angular CLI. |
| 14 | + - *defaultCollection* (`string`): The default schematics collection to use. |
| 15 | + - *packageManager* (`string`): Specify which package manager tool to use. |
| 16 | + - *warnings* (`object`): Warning configuration. |
| 17 | + - *versionMismatch* (`boolean`): Show a warning when the global version is newer than the local one. |
| 18 | + - *typescriptMismatch* (`boolean`): The name of the project. |
| 19 | + |
| 20 | +- **schematics** (`object`): Workspace configuration options for Schematics. |
| 21 | + - *schematic-package:schematic-name* (`string`): Object containing options for this schematic. |
| 22 | + |
| 23 | +- **projects**: Configuration options for each project in the workspace. |
| 24 | + - *root* (`string`): Root of the project files. |
| 25 | + - *sourceRoot* (`string`): The root of the source files, assets and index.html file structure.. |
| 26 | + - *projectType* (`string`): the type of this project, `application` or `library`. |
| 27 | + - *prefix* (`string`): The prefix to apply to generated selectors. |
| 28 | + - *schematics* (`object`): Project configuration options for Schematics. Has the same format as top level Schematics configuration). |
| 29 | + - *architect* (`string`): Project configuration for Architect targets. |
| 30 | + - *targetName* (`string`): Name of this target. |
| 31 | + - *builder* (`string`): Builder for this target, in the format `package-name:builder-name`. |
| 32 | + - *options* (`string`): Options for this builder. |
| 33 | + - *configurations* (`object`): A map of alternative target options. |
| 34 | + - *configurationName* (`object`): Partial options override for this builder. |
0 commit comments