@angular-devkit/build-angular 14.1.0-next.1 → 14.1.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,428 @@
1
+ /**
2
+ * Browser target options
3
+ */
4
+ export interface Schema {
5
+ /**
6
+ * A list of CommonJS packages that are allowed to be used without a build time warning.
7
+ */
8
+ allowedCommonJsDependencies?: string[];
9
+ /**
10
+ * Build using Ahead of Time compilation.
11
+ */
12
+ aot?: boolean;
13
+ /**
14
+ * List of static application assets.
15
+ */
16
+ assets?: AssetPattern[];
17
+ /**
18
+ * Base url for the application being built.
19
+ */
20
+ baseHref?: string;
21
+ /**
22
+ * Budget thresholds to ensure parts of your application stay within boundaries which you
23
+ * set.
24
+ */
25
+ budgets?: Budget[];
26
+ /**
27
+ * Enables advanced build optimizations when using the 'aot' option.
28
+ */
29
+ buildOptimizer?: boolean;
30
+ /**
31
+ * Generate a seperate bundle containing code used across multiple bundles.
32
+ */
33
+ commonChunk?: boolean;
34
+ /**
35
+ * Define the crossorigin attribute setting of elements that provide CORS support.
36
+ */
37
+ crossOrigin?: CrossOrigin;
38
+ /**
39
+ * Delete the output path before building.
40
+ */
41
+ deleteOutputPath?: boolean;
42
+ /**
43
+ * URL where files will be deployed.
44
+ * @deprecated Use "baseHref" option, "APP_BASE_HREF" DI token or a combination of both
45
+ * instead. For more information, see https://angular.io/guide/deployment#the-deploy-url.
46
+ */
47
+ deployUrl?: string;
48
+ /**
49
+ * Exclude the listed external dependencies from being bundled into the bundle. Instead, the
50
+ * created bundle relies on these dependencies to be available during runtime.
51
+ */
52
+ externalDependencies?: string[];
53
+ /**
54
+ * Extract all licenses in a separate file.
55
+ */
56
+ extractLicenses?: boolean;
57
+ /**
58
+ * Replace compilation source files with other compilation source files in the build.
59
+ */
60
+ fileReplacements?: FileReplacement[];
61
+ /**
62
+ * How to handle duplicate translations for i18n.
63
+ */
64
+ i18nDuplicateTranslation?: I18NTranslation;
65
+ /**
66
+ * How to handle missing translations for i18n.
67
+ */
68
+ i18nMissingTranslation?: I18NTranslation;
69
+ /**
70
+ * Configures the generation of the application's HTML index.
71
+ */
72
+ index: IndexUnion;
73
+ /**
74
+ * The stylesheet language to use for the application's inline component styles.
75
+ */
76
+ inlineStyleLanguage?: InlineStyleLanguage;
77
+ /**
78
+ * Translate the bundles in one or more locales.
79
+ */
80
+ localize?: Localize;
81
+ /**
82
+ * The full path for the main entry point to the app, relative to the current workspace.
83
+ */
84
+ main: string;
85
+ /**
86
+ * Use file name for lazy loaded chunks.
87
+ */
88
+ namedChunks?: boolean;
89
+ /**
90
+ * Path to ngsw-config.json.
91
+ */
92
+ ngswConfigPath?: string;
93
+ /**
94
+ * Enables optimization of the build output. Including minification of scripts and styles,
95
+ * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
96
+ * more information, see
97
+ * https://angular.io/guide/workspace-config#optimization-configuration.
98
+ */
99
+ optimization?: OptimizationUnion;
100
+ /**
101
+ * Define the output filename cache-busting hashing mode.
102
+ */
103
+ outputHashing?: OutputHashing;
104
+ /**
105
+ * The full path for the new output directory, relative to the current workspace.
106
+ * By default, writes output to a folder named dist/ in the current project.
107
+ */
108
+ outputPath: string;
109
+ /**
110
+ * Enable and define the file watching poll time period in milliseconds.
111
+ */
112
+ poll?: number;
113
+ /**
114
+ * The full path for the polyfills file, relative to the current workspace.
115
+ */
116
+ polyfills?: string;
117
+ /**
118
+ * Do not use the real path when resolving modules. If unset then will default to `true` if
119
+ * NodeJS option --preserve-symlinks is set.
120
+ */
121
+ preserveSymlinks?: boolean;
122
+ /**
123
+ * Log progress to the console while building.
124
+ */
125
+ progress?: boolean;
126
+ /**
127
+ * The path where style resources will be placed, relative to outputPath.
128
+ */
129
+ resourcesOutputPath?: string;
130
+ /**
131
+ * Global scripts to be included in the build.
132
+ */
133
+ scripts?: ScriptElement[];
134
+ /**
135
+ * Generates a service worker config for production builds.
136
+ */
137
+ serviceWorker?: boolean;
138
+ /**
139
+ * Output source maps for scripts and styles. For more information, see
140
+ * https://angular.io/guide/workspace-config#source-map-configuration.
141
+ */
142
+ sourceMap?: SourceMapUnion;
143
+ /**
144
+ * Generates a 'stats.json' file which can be analyzed using tools such as
145
+ * 'webpack-bundle-analyzer'.
146
+ */
147
+ statsJson?: boolean;
148
+ /**
149
+ * Options to pass to style preprocessors.
150
+ */
151
+ stylePreprocessorOptions?: StylePreprocessorOptions;
152
+ /**
153
+ * Global styles to be included in the build.
154
+ */
155
+ styles?: StyleElement[];
156
+ /**
157
+ * Enables the use of subresource integrity validation.
158
+ */
159
+ subresourceIntegrity?: boolean;
160
+ /**
161
+ * The full path for the TypeScript configuration file, relative to the current workspace.
162
+ */
163
+ tsConfig: string;
164
+ /**
165
+ * Generate a seperate bundle containing only vendor libraries. This option should only used
166
+ * for development.
167
+ */
168
+ vendorChunk?: boolean;
169
+ /**
170
+ * Adds more details to output logging.
171
+ */
172
+ verbose?: boolean;
173
+ /**
174
+ * Run build when files change.
175
+ */
176
+ watch?: boolean;
177
+ /**
178
+ * TypeScript configuration for Web Worker modules.
179
+ */
180
+ webWorkerTsConfig?: string;
181
+ }
182
+ export declare type AssetPattern = AssetPatternClass | string;
183
+ export interface AssetPatternClass {
184
+ /**
185
+ * Allow glob patterns to follow symlink directories. This allows subdirectories of the
186
+ * symlink to be searched.
187
+ */
188
+ followSymlinks?: boolean;
189
+ /**
190
+ * The pattern to match.
191
+ */
192
+ glob: string;
193
+ /**
194
+ * An array of globs to ignore.
195
+ */
196
+ ignore?: string[];
197
+ /**
198
+ * The input directory path in which to apply 'glob'. Defaults to the project root.
199
+ */
200
+ input: string;
201
+ /**
202
+ * Absolute path within the output.
203
+ */
204
+ output: string;
205
+ }
206
+ export interface Budget {
207
+ /**
208
+ * The baseline size for comparison.
209
+ */
210
+ baseline?: string;
211
+ /**
212
+ * The threshold for error relative to the baseline (min & max).
213
+ */
214
+ error?: string;
215
+ /**
216
+ * The maximum threshold for error relative to the baseline.
217
+ */
218
+ maximumError?: string;
219
+ /**
220
+ * The maximum threshold for warning relative to the baseline.
221
+ */
222
+ maximumWarning?: string;
223
+ /**
224
+ * The minimum threshold for error relative to the baseline.
225
+ */
226
+ minimumError?: string;
227
+ /**
228
+ * The minimum threshold for warning relative to the baseline.
229
+ */
230
+ minimumWarning?: string;
231
+ /**
232
+ * The name of the bundle.
233
+ */
234
+ name?: string;
235
+ /**
236
+ * The type of budget.
237
+ */
238
+ type: Type;
239
+ /**
240
+ * The threshold for warning relative to the baseline (min & max).
241
+ */
242
+ warning?: string;
243
+ }
244
+ /**
245
+ * The type of budget.
246
+ */
247
+ export declare enum Type {
248
+ All = "all",
249
+ AllScript = "allScript",
250
+ Any = "any",
251
+ AnyComponentStyle = "anyComponentStyle",
252
+ AnyScript = "anyScript",
253
+ Bundle = "bundle",
254
+ Initial = "initial"
255
+ }
256
+ /**
257
+ * Define the crossorigin attribute setting of elements that provide CORS support.
258
+ */
259
+ export declare enum CrossOrigin {
260
+ Anonymous = "anonymous",
261
+ None = "none",
262
+ UseCredentials = "use-credentials"
263
+ }
264
+ export interface FileReplacement {
265
+ replace?: string;
266
+ replaceWith?: string;
267
+ src?: string;
268
+ with?: string;
269
+ }
270
+ /**
271
+ * How to handle duplicate translations for i18n.
272
+ *
273
+ * How to handle missing translations for i18n.
274
+ */
275
+ export declare enum I18NTranslation {
276
+ Error = "error",
277
+ Ignore = "ignore",
278
+ Warning = "warning"
279
+ }
280
+ /**
281
+ * Configures the generation of the application's HTML index.
282
+ */
283
+ export declare type IndexUnion = IndexObject | string;
284
+ export interface IndexObject {
285
+ /**
286
+ * The path of a file to use for the application's generated HTML index.
287
+ */
288
+ input: string;
289
+ /**
290
+ * The output path of the application's generated HTML index file. The full provided path
291
+ * will be used and will be considered relative to the application's configured output path.
292
+ */
293
+ output?: string;
294
+ }
295
+ /**
296
+ * The stylesheet language to use for the application's inline component styles.
297
+ */
298
+ export declare enum InlineStyleLanguage {
299
+ Css = "css",
300
+ Less = "less",
301
+ Sass = "sass",
302
+ Scss = "scss"
303
+ }
304
+ /**
305
+ * Translate the bundles in one or more locales.
306
+ */
307
+ export declare type Localize = string[] | boolean;
308
+ /**
309
+ * Enables optimization of the build output. Including minification of scripts and styles,
310
+ * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
311
+ * more information, see
312
+ * https://angular.io/guide/workspace-config#optimization-configuration.
313
+ */
314
+ export declare type OptimizationUnion = boolean | OptimizationClass;
315
+ export interface OptimizationClass {
316
+ /**
317
+ * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
318
+ * environment variable can be used to specify a proxy server.
319
+ */
320
+ fonts?: FontsUnion;
321
+ /**
322
+ * Enables optimization of the scripts output.
323
+ */
324
+ scripts?: boolean;
325
+ /**
326
+ * Enables optimization of the styles output.
327
+ */
328
+ styles?: StylesUnion;
329
+ }
330
+ /**
331
+ * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
332
+ * environment variable can be used to specify a proxy server.
333
+ */
334
+ export declare type FontsUnion = boolean | FontsClass;
335
+ export interface FontsClass {
336
+ /**
337
+ * Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS
338
+ * definitions in the application's HTML index file. This option requires internet access.
339
+ * `HTTPS_PROXY` environment variable can be used to specify a proxy server.
340
+ */
341
+ inline?: boolean;
342
+ }
343
+ /**
344
+ * Enables optimization of the styles output.
345
+ */
346
+ export declare type StylesUnion = boolean | StylesClass;
347
+ export interface StylesClass {
348
+ /**
349
+ * Extract and inline critical CSS definitions to improve first paint time.
350
+ */
351
+ inlineCritical?: boolean;
352
+ /**
353
+ * Minify CSS definitions by removing extraneous whitespace and comments, merging
354
+ * identifiers and minimizing values.
355
+ */
356
+ minify?: boolean;
357
+ }
358
+ /**
359
+ * Define the output filename cache-busting hashing mode.
360
+ */
361
+ export declare enum OutputHashing {
362
+ All = "all",
363
+ Bundles = "bundles",
364
+ Media = "media",
365
+ None = "none"
366
+ }
367
+ export declare type ScriptElement = ScriptClass | string;
368
+ export interface ScriptClass {
369
+ /**
370
+ * The bundle name for this extra entry point.
371
+ */
372
+ bundleName?: string;
373
+ /**
374
+ * If the bundle will be referenced in the HTML file.
375
+ */
376
+ inject?: boolean;
377
+ /**
378
+ * The file to include.
379
+ */
380
+ input: string;
381
+ }
382
+ /**
383
+ * Output source maps for scripts and styles. For more information, see
384
+ * https://angular.io/guide/workspace-config#source-map-configuration.
385
+ */
386
+ export declare type SourceMapUnion = boolean | SourceMapClass;
387
+ export interface SourceMapClass {
388
+ /**
389
+ * Output source maps used for error reporting tools.
390
+ */
391
+ hidden?: boolean;
392
+ /**
393
+ * Output source maps for all scripts.
394
+ */
395
+ scripts?: boolean;
396
+ /**
397
+ * Output source maps for all styles.
398
+ */
399
+ styles?: boolean;
400
+ /**
401
+ * Resolve vendor packages source maps.
402
+ */
403
+ vendor?: boolean;
404
+ }
405
+ /**
406
+ * Options to pass to style preprocessors.
407
+ */
408
+ export interface StylePreprocessorOptions {
409
+ /**
410
+ * Paths to include. Paths will be resolved to workspace root.
411
+ */
412
+ includePaths?: string[];
413
+ }
414
+ export declare type StyleElement = StyleClass | string;
415
+ export interface StyleClass {
416
+ /**
417
+ * The bundle name for this extra entry point.
418
+ */
419
+ bundleName?: string;
420
+ /**
421
+ * If the bundle will be referenced in the HTML file.
422
+ */
423
+ inject?: boolean;
424
+ /**
425
+ * The file to include.
426
+ */
427
+ input: string;
428
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
3
+ // CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.OutputHashing = exports.InlineStyleLanguage = exports.I18NTranslation = exports.CrossOrigin = exports.Type = void 0;
6
+ /**
7
+ * The type of budget.
8
+ */
9
+ var Type;
10
+ (function (Type) {
11
+ Type["All"] = "all";
12
+ Type["AllScript"] = "allScript";
13
+ Type["Any"] = "any";
14
+ Type["AnyComponentStyle"] = "anyComponentStyle";
15
+ Type["AnyScript"] = "anyScript";
16
+ Type["Bundle"] = "bundle";
17
+ Type["Initial"] = "initial";
18
+ })(Type = exports.Type || (exports.Type = {}));
19
+ /**
20
+ * Define the crossorigin attribute setting of elements that provide CORS support.
21
+ */
22
+ var CrossOrigin;
23
+ (function (CrossOrigin) {
24
+ CrossOrigin["Anonymous"] = "anonymous";
25
+ CrossOrigin["None"] = "none";
26
+ CrossOrigin["UseCredentials"] = "use-credentials";
27
+ })(CrossOrigin = exports.CrossOrigin || (exports.CrossOrigin = {}));
28
+ /**
29
+ * How to handle duplicate translations for i18n.
30
+ *
31
+ * How to handle missing translations for i18n.
32
+ */
33
+ var I18NTranslation;
34
+ (function (I18NTranslation) {
35
+ I18NTranslation["Error"] = "error";
36
+ I18NTranslation["Ignore"] = "ignore";
37
+ I18NTranslation["Warning"] = "warning";
38
+ })(I18NTranslation = exports.I18NTranslation || (exports.I18NTranslation = {}));
39
+ /**
40
+ * The stylesheet language to use for the application's inline component styles.
41
+ */
42
+ var InlineStyleLanguage;
43
+ (function (InlineStyleLanguage) {
44
+ InlineStyleLanguage["Css"] = "css";
45
+ InlineStyleLanguage["Less"] = "less";
46
+ InlineStyleLanguage["Sass"] = "sass";
47
+ InlineStyleLanguage["Scss"] = "scss";
48
+ })(InlineStyleLanguage = exports.InlineStyleLanguage || (exports.InlineStyleLanguage = {}));
49
+ /**
50
+ * Define the output filename cache-busting hashing mode.
51
+ */
52
+ var OutputHashing;
53
+ (function (OutputHashing) {
54
+ OutputHashing["All"] = "all";
55
+ OutputHashing["Bundles"] = "bundles";
56
+ OutputHashing["Media"] = "media";
57
+ OutputHashing["None"] = "none";
58
+ })(OutputHashing = exports.OutputHashing || (exports.OutputHashing = {}));