diff --git a/lib/config/schema.json b/lib/config/schema.json new file mode 100644 index 0000000000..787b28dd63 --- /dev/null +++ b/lib/config/schema.json @@ -0,0 +1,82 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Angular CLI Config Schema", + "type": "object", + "properties": { + "project": { + "description": "The global configuration of the project.", + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, + "apps": { + "description": "Properties of the different applications in this project.", + "type": "array", + "items": { + "type": "object", + "properties": { + "root": "string", + "tsconfig": "string" + }, + "additionalProperties": false + }, + "additionalProperties": false + }, + "addons": { + "description": "Configuration reserved for installed third party addons.", + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "packages": { + "description": "Configuration reserved for installed third party packages.", + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "e2e": { + "type": "object", + "properties": { + "protractor": { + "type": "object", + "properties": { + "config": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "test": { + "type": "object", + "properties": { + "karma": { + "type": "object", + "properties": { + "config": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false +}