Skip to content

Commit

Permalink
refactor(@angular-devkit/build-angular): move dev-server builder lo…
Browse files Browse the repository at this point in the history
…gic out of index file

The `index.ts` file for the `dev-server` builder was becoming quite large and it was not
obvious what was exported for external usage and what was exported to support testing.
This change also allows for future extension of the development server without bringing in
all of the Webpack-specific functionality.
  • Loading branch information
clydin authored and angular-robot[bot] committed Mar 7, 2023
1 parent 6760d1b commit f2cba37
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 424 deletions.
29 changes: 25 additions & 4 deletions goldens/public-api/angular_devkit/build_angular/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,29 @@ export enum CrossOrigin {
UseCredentials = "use-credentials"
}

// @public (undocumented)
export type DevServerBuilderOptions = Schema;
// @public
export interface DevServerBuilderOptions {
allowedHosts?: string[];
browserTarget: string;
disableHostCheck?: boolean;
headers?: {
[key: string]: string;
};
hmr?: boolean;
host?: string;
liveReload?: boolean;
open?: boolean;
poll?: number;
port?: number;
proxyConfig?: string;
publicHost?: string;
servePath?: string;
ssl?: boolean;
sslCert?: string;
sslKey?: string;
verbose?: boolean;
watch?: boolean;
}

// @public
export type DevServerBuilderOutput = DevServerBuildOutput & {
Expand All @@ -122,7 +143,7 @@ export function executeBrowserBuilder(options: BrowserBuilderOptions, context: B
}): Observable<BrowserBuilderOutput>;

// @public
export function executeDevServerBuilder(options: DevServerBuilderOptions, context: BuilderContext, transforms?: {
export function executeDevServerBuilder(options: DevServerBuilderOptions_2, context: BuilderContext, transforms?: {
webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
logging?: WebpackLoggingCallback;
indexHtml?: IndexHtmlTransform;
Expand Down Expand Up @@ -154,7 +175,7 @@ export function executeServerBuilder(options: ServerBuilderOptions, context: Bui
export type ExecutionTransformer<T> = (input: T) => T | Promise<T>;

// @public (undocumented)
export type ExtractI18nBuilderOptions = Schema_2;
export type ExtractI18nBuilderOptions = Schema;

// @public (undocumented)
export interface FileReplacement {
Expand Down
Loading

0 comments on commit f2cba37

Please sign in to comment.