-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular/build): introduce new official build system package
The `@angular/build` package has been introduced to house the esbuild/Vite-based build system that was newly introduced as stable in v17. The existing `@angular-devkit/build-angular` package will continue to contain the Webpack-based build system and to ensure backwards compatibility it will also provide aliases for the esbuild/Vite-based build system. The changes here are the first stage of the builder transition and moves the `application` builder into the new package. The application builder can now be accessed when this package is installed directly via `@angular/build:application`. No changes are required for existing projects.
- Loading branch information
1 parent
2ef958a
commit 810d213
Showing
222 changed files
with
1,357 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
## API Report File for "@angular/build" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
/// <reference types="node" /> | ||
|
||
import { BuilderContext } from '@angular-devkit/architect'; | ||
import { BuilderOutput } from '@angular-devkit/architect'; | ||
import { OutputFile } from 'esbuild'; | ||
import type { Plugin as Plugin_2 } from 'esbuild'; | ||
|
||
// @public | ||
export interface ApplicationBuilderOptions { | ||
allowedCommonJsDependencies?: string[]; | ||
aot?: boolean; | ||
appShell?: boolean; | ||
assets?: AssetPattern[]; | ||
baseHref?: string; | ||
browser: string; | ||
budgets?: Budget[]; | ||
clearScreen?: boolean; | ||
crossOrigin?: CrossOrigin; | ||
define?: { | ||
[key: string]: string; | ||
}; | ||
deleteOutputPath?: boolean; | ||
deployUrl?: string; | ||
externalDependencies?: string[]; | ||
extractLicenses?: boolean; | ||
fileReplacements?: FileReplacement[]; | ||
i18nDuplicateTranslation?: I18NTranslation; | ||
i18nMissingTranslation?: I18NTranslation; | ||
index: IndexUnion; | ||
inlineStyleLanguage?: InlineStyleLanguage; | ||
loader?: { | ||
[key: string]: any; | ||
}; | ||
localize?: Localize; | ||
namedChunks?: boolean; | ||
optimization?: OptimizationUnion; | ||
outputHashing?: OutputHashing; | ||
outputPath: OutputPathUnion; | ||
poll?: number; | ||
polyfills?: string[]; | ||
prerender?: PrerenderUnion; | ||
preserveSymlinks?: boolean; | ||
progress?: boolean; | ||
scripts?: ScriptElement[]; | ||
server?: string; | ||
serviceWorker?: ServiceWorker_2; | ||
sourceMap?: SourceMapUnion; | ||
ssr?: SsrUnion; | ||
statsJson?: boolean; | ||
stylePreprocessorOptions?: StylePreprocessorOptions; | ||
styles?: StyleElement[]; | ||
subresourceIntegrity?: boolean; | ||
tsConfig: string; | ||
verbose?: boolean; | ||
watch?: boolean; | ||
webWorkerTsConfig?: string; | ||
} | ||
|
||
// @public (undocumented) | ||
export interface ApplicationBuilderOutput extends BuilderOutput { | ||
// (undocumented) | ||
assetFiles?: { | ||
source: string; | ||
destination: string; | ||
}[]; | ||
// (undocumented) | ||
outputFiles?: BuildOutputFile[]; | ||
} | ||
|
||
// @public | ||
export function buildApplication(options: ApplicationBuilderOptions, context: BuilderContext, plugins?: Plugin_2[]): AsyncIterable<ApplicationBuilderOutput>; | ||
|
||
// @public | ||
export function buildApplication(options: ApplicationBuilderOptions, context: BuilderContext, extensions?: ApplicationBuilderExtensions): AsyncIterable<ApplicationBuilderOutput>; | ||
|
||
// @public (undocumented) | ||
export interface BuildOutputAsset { | ||
// (undocumented) | ||
destination: string; | ||
// (undocumented) | ||
source: string; | ||
} | ||
|
||
// @public (undocumented) | ||
export interface BuildOutputFile extends OutputFile { | ||
// (undocumented) | ||
clone: () => BuildOutputFile; | ||
// (undocumented) | ||
type: BuildOutputFileType; | ||
} | ||
|
||
// @public (undocumented) | ||
export enum BuildOutputFileType { | ||
// (undocumented) | ||
Browser = 1, | ||
// (undocumented) | ||
Media = 2, | ||
// (undocumented) | ||
Root = 4, | ||
// (undocumented) | ||
Server = 3 | ||
} | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.