-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathoptions.d.ts
51 lines (51 loc) · 1.92 KB
/
options.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { BuilderContext } from '@angular-devkit/architect';
import { Schema as DevServerOptions } from './schema';
export type NormalizedDevServerOptions = Awaited<ReturnType<typeof normalizeOptions>>;
/**
* Normalize the user provided options by creating full paths for all path based options
* and converting multi-form options into a single form that can be directly used
* by the build process.
*
* @param context The context for current builder execution.
* @param projectName The name of the project for the current execution.
* @param options An object containing the options to use for the build.
* @returns An object containing normalized options required to perform the build.
*/
export declare function normalizeOptions(context: BuilderContext, projectName: string, options: DevServerOptions): Promise<{
buildTarget: import("@angular-devkit/architect").Target;
host: string;
port: number;
poll: number | undefined;
open: boolean | undefined;
verbose: boolean | undefined;
watch: boolean | undefined;
liveReload: boolean;
hmr: boolean | undefined;
headers: {
[key: string]: string;
} | undefined;
workspaceRoot: string;
projectRoot: string;
cacheOptions: import("../../utils/normalize-cache").NormalizedCachedOptions;
allowedHosts: string[] | undefined;
disableHostCheck: boolean | undefined;
proxyConfig: string | undefined;
servePath: string | undefined;
publicHost: string | undefined;
ssl: boolean | undefined;
sslCert: string | undefined;
sslKey: string | undefined;
forceEsbuild: boolean | undefined;
prebundle: import("./schema").PrebundleUnion;
inspect: boolean | {
host?: string;
port?: number;
};
}>;