Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): expose ssr-dev-server builder in …
Browse files Browse the repository at this point in the history
…the public api

(cherry picked from commit f5ec789)
  • Loading branch information
leosvelperez authored and alan-agius4 committed Nov 2, 2023
1 parent 11c04e8 commit fd2c4c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions goldens/public-api/angular_devkit/build_angular/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { BuilderOutput } from '@angular-devkit/architect';
import type { ConfigOptions } from 'karma';
import { Configuration } from 'webpack';
import { DevServerBuildOutput } from '@angular-devkit/build-webpack';
import { json } from '@angular-devkit/core';
import { Observable } from 'rxjs';
import { OutputFile } from 'esbuild';
import type { Plugin as Plugin_2 } from 'esbuild';
Expand Down Expand Up @@ -227,6 +228,9 @@ export function executeServerBuilder(options: ServerBuilderOptions, context: Bui
webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
}): Observable<ServerBuilderOutput>;

// @public (undocumented)
export function executeSSRDevServerBuilder(options: SSRDevServerBuilderOptions, context: BuilderContext): Observable<SSRDevServerBuilderOutput>;

// @public
export type ExecutionTransformer<T> = (input: T) => T | Promise<T>;

Expand Down Expand Up @@ -381,6 +385,15 @@ export interface SourceMapObject {
// @public
export type SourceMapUnion = boolean | SourceMapObject;

// @public (undocumented)
export type SSRDevServerBuilderOptions = Schema & json.JsonObject;

// @public (undocumented)
export type SSRDevServerBuilderOutput = BuilderOutput & {
baseUrl?: string;
port?: string;
};

// @public
export interface StylePreprocessorOptions {
includePaths?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const IGNORED_STDOUT_MESSAGES = [
'Angular is running in development mode. Call enableProdMode() to enable production mode.',
];

type SSRDevServerBuilderOptions = Schema & json.JsonObject;
export type SSRDevServerBuilderOptions = Schema & json.JsonObject;
export type SSRDevServerBuilderOutput = BuilderOutput & {
baseUrl?: string;
port?: string;
Expand Down
6 changes: 6 additions & 0 deletions packages/angular_devkit/build_angular/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ export {
ServerBuilderOutput,
} from './builders/server';

export {
execute as executeSSRDevServerBuilder,
SSRDevServerBuilderOptions,
SSRDevServerBuilderOutput,
} from './builders/ssr-dev-server';

export { execute as executeNgPackagrBuilder, NgPackagrBuilderOptions } from './builders/ng-packagr';

0 comments on commit fd2c4c3

Please sign in to comment.