Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): expose ssr-dev-server builder in the public api #26201

Merged
merged 1 commit into from Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions goldens/public-api/angular_devkit/build_angular/index.md
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
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
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';