|
6 | 6 |
|
7 | 7 | /// <reference types="node" />
|
8 | 8 |
|
| 9 | +import { ApplicationBuilderOptions } from '@angular/build'; |
| 10 | +import { buildApplication } from '@angular/build'; |
9 | 11 | import { BuilderContext } from '@angular-devkit/architect';
|
10 | 12 | import { BuilderOutput } from '@angular-devkit/architect';
|
11 | 13 | import type { ConfigOptions } from 'karma';
|
12 | 14 | import { Configuration } from 'webpack';
|
13 | 15 | import { DevServerBuildOutput } from '@angular-devkit/build-webpack';
|
14 | 16 | import type http from 'node:http';
|
| 17 | +import { IndexHtmlTransform } from '@angular/build/private'; |
15 | 18 | import { json } from '@angular-devkit/core';
|
16 | 19 | import { Observable } from 'rxjs';
|
17 |
| -import { OutputFile } from 'esbuild'; |
18 | 20 | import type { Plugin as Plugin_2 } from 'esbuild';
|
19 | 21 | import webpack from 'webpack';
|
20 | 22 | import { WebpackLoggingCallback } from '@angular-devkit/build-webpack';
|
21 | 23 |
|
22 |
| -// @public |
23 |
| -export interface ApplicationBuilderOptions { |
24 |
| - allowedCommonJsDependencies?: string[]; |
25 |
| - aot?: boolean; |
26 |
| - appShell?: boolean; |
27 |
| - assets?: AssetPattern_2[]; |
28 |
| - baseHref?: string; |
29 |
| - browser: string; |
30 |
| - budgets?: Budget_2[]; |
31 |
| - clearScreen?: boolean; |
32 |
| - crossOrigin?: CrossOrigin_2; |
33 |
| - define?: { |
34 |
| - [key: string]: string; |
35 |
| - }; |
36 |
| - deleteOutputPath?: boolean; |
37 |
| - deployUrl?: string; |
38 |
| - externalDependencies?: string[]; |
39 |
| - extractLicenses?: boolean; |
40 |
| - fileReplacements?: FileReplacement_2[]; |
41 |
| - i18nDuplicateTranslation?: I18NTranslation_2; |
42 |
| - i18nMissingTranslation?: I18NTranslation_2; |
43 |
| - index: IndexUnion_2; |
44 |
| - inlineStyleLanguage?: InlineStyleLanguage_2; |
45 |
| - loader?: { |
46 |
| - [key: string]: any; |
47 |
| - }; |
48 |
| - localize?: Localize_2; |
49 |
| - namedChunks?: boolean; |
50 |
| - optimization?: OptimizationUnion_2; |
51 |
| - outputHashing?: OutputHashing_2; |
52 |
| - outputPath: OutputPathUnion; |
53 |
| - poll?: number; |
54 |
| - polyfills?: string[]; |
55 |
| - prerender?: PrerenderUnion; |
56 |
| - preserveSymlinks?: boolean; |
57 |
| - progress?: boolean; |
58 |
| - scripts?: ScriptElement_2[]; |
59 |
| - server?: string; |
60 |
| - serviceWorker?: ServiceWorker_2; |
61 |
| - sourceMap?: SourceMapUnion_2; |
62 |
| - ssr?: SsrUnion; |
63 |
| - statsJson?: boolean; |
64 |
| - stylePreprocessorOptions?: StylePreprocessorOptions_2; |
65 |
| - styles?: StyleElement_2[]; |
66 |
| - subresourceIntegrity?: boolean; |
67 |
| - tsConfig: string; |
68 |
| - verbose?: boolean; |
69 |
| - watch?: boolean; |
70 |
| - webWorkerTsConfig?: string; |
71 |
| -} |
| 24 | +export { ApplicationBuilderOptions } |
72 | 25 |
|
73 | 26 | // @public (undocumented)
|
74 | 27 | export type AssetPattern = AssetPatternObject | string;
|
@@ -150,11 +103,7 @@ export interface Budget {
|
150 | 103 | warning?: string;
|
151 | 104 | }
|
152 | 105 |
|
153 |
| -// @public |
154 |
| -export function buildApplication(options: ApplicationBuilderOptions, context: BuilderContext, plugins?: Plugin_2[]): AsyncIterable<ApplicationBuilderOutput>; |
155 |
| - |
156 |
| -// @public |
157 |
| -export function buildApplication(options: ApplicationBuilderOptions, context: BuilderContext, extensions?: ApplicationBuilderExtensions): AsyncIterable<ApplicationBuilderOutput>; |
| 106 | +export { buildApplication } |
158 | 107 |
|
159 | 108 | // @public
|
160 | 109 | export enum CrossOrigin {
|
@@ -271,25 +220,25 @@ export interface FileReplacement {
|
271 | 220 |
|
272 | 221 | // @public
|
273 | 222 | export interface KarmaBuilderOptions {
|
274 |
| - assets?: AssetPattern_3[]; |
| 223 | + assets?: AssetPattern_2[]; |
275 | 224 | browsers?: Browsers;
|
276 | 225 | codeCoverage?: boolean;
|
277 | 226 | codeCoverageExclude?: string[];
|
278 | 227 | exclude?: string[];
|
279 |
| - fileReplacements?: FileReplacement_3[]; |
| 228 | + fileReplacements?: FileReplacement_2[]; |
280 | 229 | include?: string[];
|
281 |
| - inlineStyleLanguage?: InlineStyleLanguage_3; |
| 230 | + inlineStyleLanguage?: InlineStyleLanguage_2; |
282 | 231 | karmaConfig?: string;
|
283 | 232 | main?: string;
|
284 | 233 | poll?: number;
|
285 | 234 | polyfills?: Polyfills_2;
|
286 | 235 | preserveSymlinks?: boolean;
|
287 | 236 | progress?: boolean;
|
288 | 237 | reporters?: string[];
|
289 |
| - scripts?: ScriptElement_3[]; |
290 |
| - sourceMap?: SourceMapUnion_3; |
291 |
| - stylePreprocessorOptions?: StylePreprocessorOptions_3; |
292 |
| - styles?: StyleElement_3[]; |
| 238 | + scripts?: ScriptElement_2[]; |
| 239 | + sourceMap?: SourceMapUnion_2; |
| 240 | + stylePreprocessorOptions?: StylePreprocessorOptions_2; |
| 241 | + styles?: StyleElement_2[]; |
293 | 242 | tsConfig: string;
|
294 | 243 | watch?: boolean;
|
295 | 244 | webWorkerTsConfig?: string;
|
@@ -347,29 +296,29 @@ export interface ProtractorBuilderOptions {
|
347 | 296 |
|
348 | 297 | // @public (undocumented)
|
349 | 298 | export interface ServerBuilderOptions {
|
350 |
| - assets?: AssetPattern_4[]; |
| 299 | + assets?: AssetPattern_3[]; |
351 | 300 | buildOptimizer?: boolean;
|
352 | 301 | deleteOutputPath?: boolean;
|
353 | 302 | deployUrl?: string;
|
354 | 303 | externalDependencies?: string[];
|
355 | 304 | extractLicenses?: boolean;
|
356 |
| - fileReplacements?: FileReplacement_4[]; |
357 |
| - i18nDuplicateTranslation?: I18NTranslation_3; |
358 |
| - i18nMissingTranslation?: I18NTranslation_3; |
359 |
| - inlineStyleLanguage?: InlineStyleLanguage_4; |
360 |
| - localize?: Localize_3; |
| 305 | + fileReplacements?: FileReplacement_3[]; |
| 306 | + i18nDuplicateTranslation?: I18NTranslation_2; |
| 307 | + i18nMissingTranslation?: I18NTranslation_2; |
| 308 | + inlineStyleLanguage?: InlineStyleLanguage_3; |
| 309 | + localize?: Localize_2; |
361 | 310 | main: string;
|
362 | 311 | namedChunks?: boolean;
|
363 |
| - optimization?: OptimizationUnion_3; |
364 |
| - outputHashing?: OutputHashing_3; |
| 312 | + optimization?: OptimizationUnion_2; |
| 313 | + outputHashing?: OutputHashing_2; |
365 | 314 | outputPath: string;
|
366 | 315 | poll?: number;
|
367 | 316 | preserveSymlinks?: boolean;
|
368 | 317 | progress?: boolean;
|
369 | 318 | resourcesOutputPath?: string;
|
370 |
| - sourceMap?: SourceMapUnion_4; |
| 319 | + sourceMap?: SourceMapUnion_3; |
371 | 320 | statsJson?: boolean;
|
372 |
| - stylePreprocessorOptions?: StylePreprocessorOptions_4; |
| 321 | + stylePreprocessorOptions?: StylePreprocessorOptions_3; |
373 | 322 | tsConfig: string;
|
374 | 323 | vendorChunk?: boolean;
|
375 | 324 | verbose?: boolean;
|
|
0 commit comments