Skip to content

Commit c5e43d0

Browse files
committed
chore: add a first draft of the config schema. (#484)
1 parent 555f184 commit c5e43d0

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

lib/config/schema.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Angular CLI Config Schema",
4+
"type": "object",
5+
"properties": {
6+
"project": {
7+
"description": "The global configuration of the project.",
8+
"type": "object",
9+
"properties": {
10+
"version": {
11+
"type": "string"
12+
},
13+
"name": {
14+
"type": "string"
15+
}
16+
},
17+
"additionalProperties": false
18+
},
19+
"apps": {
20+
"description": "Properties of the different applications in this project.",
21+
"type": "array",
22+
"items": {
23+
"type": "object",
24+
"properties": {
25+
"root": "string",
26+
"tsconfig": "string"
27+
},
28+
"additionalProperties": false
29+
},
30+
"additionalProperties": false
31+
},
32+
"addons": {
33+
"description": "Configuration reserved for installed third party addons.",
34+
"type": "array",
35+
"items": {
36+
"type": "object",
37+
"properties": {},
38+
"additionalProperties": true
39+
}
40+
},
41+
"packages": {
42+
"description": "Configuration reserved for installed third party packages.",
43+
"type": "array",
44+
"items": {
45+
"type": "object",
46+
"properties": {},
47+
"additionalProperties": true
48+
}
49+
},
50+
"e2e": {
51+
"type": "object",
52+
"properties": {
53+
"protractor": {
54+
"type": "object",
55+
"properties": {
56+
"config": {
57+
"type": "string"
58+
}
59+
},
60+
"additionalProperties": false
61+
}
62+
},
63+
"additionalProperties": false
64+
},
65+
"test": {
66+
"type": "object",
67+
"properties": {
68+
"karma": {
69+
"type": "object",
70+
"properties": {
71+
"config": {
72+
"type": "string"
73+
}
74+
},
75+
"additionalProperties": false
76+
}
77+
},
78+
"additionalProperties": false
79+
}
80+
},
81+
"additionalProperties": false
82+
}

0 commit comments

Comments
 (0)