This repository was archived by the owner on Apr 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathschema.d.ts
365 lines (298 loc) · 6.55 KB
/
schema.d.ts
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
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export interface BrowserBuilderSchema {
/**
* List of static application assets.
*/
assets: AssetPattern[];
/**
* The name of the main entry-point file.
*/
main: string;
/**
* The name of the polyfills file.
*/
polyfills?: string;
/**
* The name of the TypeScript configuration file.
*/
tsConfig: string;
/**
* Global scripts to be included in the build.
*/
scripts: ExtraEntryPoint[];
/**
* Global styles to be included in the build.
*/
styles: ExtraEntryPoint[];
/**
* Options to pass to style preprocessors.
*/
stylePreprocessorOptions?: StylePreprocessorOptions;
/**
* Defines the optimization level of the build.
*/
optimization: boolean;
/**
* Replace files with other files in the build.
*/
fileReplacements: FileReplacements[];
/**
* Path where output will be placed.
*/
outputPath: string;
/**
* Build using Ahead of Time compilation.
*/
aot: boolean;
/**
* Output sourcemaps.
*/
sourceMap: boolean;
/**
* Resolve vendor packages sourcemaps.
*/
vendorSourceMap?: boolean;
/**
* Output in-file eval sourcemaps.
*/
evalSourceMap: boolean;
/**
* Use a separate bundle containing only vendor libraries.
*/
vendorChunk: boolean;
/**
* Use a separate bundle containing code used across multiple bundles.
*/
commonChunk: boolean;
/**
* Base url for the application being built.
*/
baseHref?: string;
/**
* URL where files will be deployed.
*/
deployUrl?: string;
/**
* Adds more details to output logging.
*/
verbose: boolean;
/**
* Log progress to the console while building.
*/
progress: boolean;
/**
* Localization file to use for i18n.
*/
i18nFile?: string;
/**
* Format of the localization file specified with --i18n-file.
*/
i18nFormat?: string;
/**
* Locale to use for i18n.
*/
i18nLocale?: string;
/**
* How to handle missing translations for i18n.
*/
i18nMissingTranslation?: string;
/**
* Extract css from global styles onto css files instead of js ones.
*/
extractCss: boolean;
/**
* Run build when files change.
*/
watch: boolean;
/**
* Define the output filename cache-busting hashing mode.
*/
outputHashing: OutputHashing;
/**
* Enable and define the file watching poll time period in milliseconds.
*/
poll?: number;
/**
* Delete the output path before building.
*/
deleteOutputPath: boolean;
/**
* Do not use the real path when resolving modules.
*/
preserveSymlinks: boolean;
/**
* Extract all licenses in a separate file, in the case of production builds only.
*/
extractLicenses: boolean;
/**
* Show circular dependency warnings on builds.
*/
showCircularDependencies: boolean;
/**
* Enables @angular-devkit/build-optimizer optimizations when using the 'aot' option.
*/
buildOptimizer: boolean;
/**
* Use file name for lazy loaded chunks.
*/
namedChunks: boolean;
/**
* Enables the use of subresource integrity validation.
*/
subresourceIntegrity: boolean;
/**
* Generates a service worker config for production builds.
*/
serviceWorker: boolean;
/**
* Path to ngsw-config.json.
*/
ngswConfigPath?: string;
/**
* Flag to prevent building an app shell.
*/
skipAppShell: boolean;
/**
* The name of the index HTML file.
*/
index: string;
/**
* Generates a 'stats.json' file which can be analyzed using tools
* such as: #webpack-bundle-analyzer' or https: //webpack.github.io/analyse.
*/
statsJson: boolean;
/**
* Run the TypeScript type checker in a forked process.
*/
forkTypeChecker: boolean;
/**
* List of additional NgModule files that will be lazy loaded.
* Lazy router modules with be discovered automatically.
*/
lazyModules: string[];
/**
* Budget thresholds to ensure parts of your application stay within boundaries which you set.
*/
budgets: Budget[];
}
export type AssetPattern = string | AssetPatternObject;
export interface AssetPatternObject {
/**
* The pattern to match.
*/
glob: string;
/**
* The input path dir in which to apply 'glob'. Defaults to the project root.
*/
input: string;
/**
* Absolute path within the output.
*/
output: string;
}
export type ExtraEntryPoint = string | ExtraEntryPointObject;
export interface ExtraEntryPointObject {
/**
* The file to include.
*/
input: string;
/**
* The bundle name for this extra entry point.
*/
bundleName?: string;
/**
* If the bundle will be lazy loaded.
*/
lazy: boolean;
}
export declare type FileReplacement = DeprecatedFileReplacment | CurrentFileReplacement;
export interface DeprecatedFileReplacment {
/**
* The file that should be replaced.
*/
src: string;
/**
* The file that should replace.
*/
replaceWith: string;
}
export interface CurrentFileReplacement {
/**
* The file that should be replaced.
*/
replace: string;
/**
* The file that should replace.
*/
with: string;
}
/**
* Define the output filename cache-busting hashing mode.
*/
export enum OutputHashing {
All = 'all',
Bundles = 'bundles',
Media = 'media',
None = 'none',
}
/**
* Options to pass to style preprocessors
*/
export interface StylePreprocessorOptions {
/**
* Paths to include. Paths will be resolved to project root.
*/
includePaths: string[];
}
export interface Budget {
/**
* The type of budget.
*/
type: BudgetType;
/**
* The name of the bundle.
*/
name: string;
/**
* The baseline size for comparison.
*/
baseline: string;
/**
* The maximum threshold for warning relative to the baseline.
*/
maximumWarning: string;
/**
* The maximum threshold for error relative to the baseline.
*/
maximumError: string;
/**
* The minimum threshold for warning relative to the baseline.
*/
minimumWarning: string;
/**
* The minimum threshold for error relative to the baseline.
*/
minimumError: string;
/**
* The threshold for warning relative to the baseline (min & max).
*/
warning: string;
/**
* The threshold for error relative to the baseline (min & max).
*/
error: string;
}
export enum BudgetType {
Initial = 'initial',
All = 'all',
Any = 'any',
AllScript = 'allScript',
AnyScript = 'anyScript',
Bundle = 'bundle',
}