/
schema_benchmark.json
593 lines (590 loc) · 18.2 KB
/
schema_benchmark.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
{
"$schema": "http://json-schema.org/schema",
"id": "https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/lib/config/schema.json#CliConfig",
"title": "Angular CLI Config Schema",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"project": {
"description": "The global configuration of the project.",
"type": "object",
"properties": {
"name": {
"description": "The name of the project.",
"type": "string"
},
"ejected": {
"description": "Whether or not this project was ejected.",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"apps": {
"description": "Properties of the different applications in this project.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the app."
},
"root": {
"type": "string",
"description": "The root directory of the app."
},
"outDir": {
"type": "string",
"default": "dist/",
"description": "The output directory for build results."
},
"assets": {
"type": "array",
"description": "List of application assets.",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"glob": {
"type": "string",
"default": "",
"description": "The pattern to match."
},
"input": {
"type": "string",
"default": "",
"description": "The dir to search within."
},
"output": {
"type": "string",
"default": "",
"description": "The output path (relative to the outDir)."
}
},
"additionalProperties": false
}
]
},
"default": []
},
"deployUrl": {
"type": "string",
"description": "URL where files will be deployed."
},
"baseHref": {
"type": "string",
"description": "Base url for the application being built."
},
"platform": {
"type": "string",
"enum": ["browser", "server"],
"default": "browser",
"description": "The runtime platform of the app."
},
"index": {
"type": "string",
"default": "index.html",
"description": "The name of the start HTML file."
},
"main": {
"type": "string",
"description": "The name of the main entry-point file."
},
"polyfills": {
"type": "string",
"description": "The name of the polyfills file."
},
"test": {
"type": "string",
"description": "The name of the test entry-point file."
},
"tsconfig": {
"type": "string",
"default": "tsconfig.app.json",
"description": "The name of the TypeScript configuration file."
},
"testTsconfig": {
"type": "string",
"description": "The name of the TypeScript configuration file for unit tests."
},
"prefix": {
"type": "string",
"description": "The prefix to apply to generated selectors."
},
"serviceWorker": {
"description": "Experimental support for a service worker from @angular/service-worker.",
"type": "boolean",
"default": false
},
"styles": {
"description": "Global styles to be included in the build.",
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"input": {
"type": "string"
}
},
"additionalProperties": true
}
]
},
"additionalProperties": false
},
"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
},
"scripts": {
"description": "Global scripts to be included in the build.",
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"input": {
"type": "string"
}
},
"additionalProperties": true,
"required": [
"input"
]
}
]
},
"additionalProperties": false
},
"environmentSource":{
"description": "Source file for environment config.",
"type": "string"
},
"environments": {
"description": "Name and corresponding file for environment config.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
},
"additionalProperties": false
},
"e2e": {
"type": "object",
"description": "Configuration for end-to-end tests.",
"properties": {
"protractor": {
"type": "object",
"properties": {
"config": {
"description": "Path to the config file.",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"lint": {
"description": "Properties to be passed to TSLint.",
"type": "array",
"items": {
"type": "object",
"properties": {
"files": {
"description": "File glob(s) to lint.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"default": []
},
"project": {
"description": "Location of the tsconfig.json project file. Will also use as files to lint if 'files' property not present.",
"type": "string"
},
"tslintConfig": {
"description": "Location of the tslint.json configuration.",
"type": "string"
},
"exclude": {
"description": "File glob(s) to ignore.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"default": []
}
},
"required": [
"project"
],
"additionalProperties": false
}
},
"test": {
"description": "Configuration for unit tests.",
"type": "object",
"properties": {
"karma": {
"type": "object",
"properties": {
"config": {
"description": "Path to the karma config file.",
"type": "string"
}
},
"additionalProperties": false
},
"codeCoverage": {
"type": "object",
"properties": {
"exclude": {
"description": "Globs to exclude from code coverage.",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"defaults": {
"description": "Specify the default values for generating.",
"type": "object",
"properties": {
"styleExt": {
"description": "The file extension to be used for style files.",
"type": "string"
},
"poll": {
"description": "How often to check for file updates.",
"type": "number"
},
"lintFix": {
"description": "Use lint to fix files after generation",
"type": "boolean",
"default": false
},
"class": {
"description": "Options for generating a class.",
"type": "object",
"properties": {
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": false
}
}
},
"component": {
"description": "Options for generating a component.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": false
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": true
},
"inlineStyle": {
"description": "Specifies if the style will be in the ts file.",
"type": "boolean",
"default": false
},
"inlineTemplate": {
"description": "Specifies if the template will be in the ts file.",
"type": "boolean",
"default": false
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"type": "string"
},
"changeDetection": {
"description": "Specifies the change detection strategy.",
"enum": ["Default", "OnPush"],
"type": "string"
}
}
},
"directive": {
"description": "Options for generating a directive.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": true
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": true
}
}
},
"guard": {
"description": "Options for generating a guard.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": true
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": true
}
}
},
"interface": {
"description": "Options for generating an interface.",
"type": "object",
"properties": {
"prefix": {
"description": "Prefix to apply to interface names. (i.e. I)",
"type": "string",
"default": ""
}
}
},
"module": {
"description": "Options for generating a module.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": false
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": false
}
}
},
"pipe": {
"description": "Options for generating a pipe.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": true
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": true
}
}
},
"service": {
"description": "Options for generating a service.",
"type": "object",
"properties": {
"flat": {
"description": "Flag to indicate if a directory is created.",
"type": "boolean",
"default": true
},
"spec": {
"description": "Specifies if a spec file is generated.",
"type": "boolean",
"default": true
}
}
},
"build": {
"description": "Properties to be passed to the build command.",
"type": "object",
"properties": {
"sourcemaps": {
"description": "Output sourcemaps.",
"type": "boolean"
},
"baseHref": {
"description": "Base url for the application being built.",
"type": "string"
},
"progress": {
"description": "The ssl key used by the server.",
"type": "boolean",
"default": true
},
"poll": {
"description": "Enable and define the file watching poll time period (milliseconds).",
"type": "number"
},
"deleteOutputPath": {
"description": "Delete output path before build.",
"type": "boolean",
"default": true
},
"preserveSymlinks": {
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set.",
"type": "boolean"
},
"showCircularDependencies": {
"description": "Show circular dependency warnings on builds.",
"type": "boolean",
"default": true
},
"commonChunk": {
"description": "Use a separate bundle containing code used across multiple bundles.",
"type": "boolean",
"default": true
},
"namedChunks": {
"description": "Use file name for lazy loaded chunks.",
"type": "boolean"
}
}
},
"serve": {
"description": "Properties to be passed to the serve command.",
"type": "object",
"properties": {
"port": {
"description": "The port the application will be served on.",
"type": "number",
"default": 4200
},
"host": {
"description": "The host the application will be served on.",
"type": "string",
"default": "localhost"
},
"ssl": {
"description": "Enables ssl for the application.",
"type": "boolean",
"default": false
},
"sslKey": {
"description": "The ssl key used by the server.",
"type": "string",
"default": "ssl/server.key"
},
"sslCert": {
"description": "The ssl certificate used by the server.",
"type": "string",
"default": "ssl/server.crt"
},
"proxyConfig": {
"description": "Proxy configuration file.",
"type": "string"
}
}
},
"schematics": {
"description": "Properties about schematics.",
"type": "object",
"properties": {
"collection": {
"description": "The schematics collection to use.",
"type": "string",
"default": "@schematics/angular"
},
"newApp": {
"description": "The new app schematic.",
"type": "string",
"default": "application"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"packageManager": {
"description": "Specify which package manager tool to use.",
"enum": [ "npm", "cnpm", "yarn", "default" ],
"default": "default",
"type": "string"
},
"warnings": {
"description": "Allow people to disable console warnings.",
"type": "object",
"properties": {
"hmrWarning": {
"description": "Show a warning when the user enabled the --hmr option.",
"type": "boolean",
"default": true
},
"nodeDeprecation": {
"description": "Show a warning when the node version is incompatible.",
"type": "boolean",
"default": true
},
"packageDeprecation": {
"description": "Show a warning when the user installed angular-cli.",
"type": "boolean",
"default": true
},
"versionMismatch": {
"description": "Show a warning when the global version is newer than the local one.",
"type": "boolean",
"default": true
}
}
}
},
"additionalProperties": false
}