-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.d.ts
58 lines (58 loc) · 1.83 KB
/
index.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
52
53
54
55
56
57
58
/**
* @license
* Copyright Google Inc. 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.io/license
*/
/// <reference types="node" />
import { BuildEvent, Builder, BuilderConfiguration, BuilderContext } from '@angular-devkit/architect';
import { Path, virtualFs } from '@angular-devkit/core';
import { Stats } from 'fs';
import { Observable } from 'rxjs';
import { BrowserBuilderSchema } from '../browser/schema';
export interface DevServerBuilderOptions {
browserTarget: string;
port: number;
host: string;
proxyConfig?: string;
ssl: boolean;
sslKey?: string;
sslCert?: string;
open: boolean;
liveReload: boolean;
publicHost?: string;
servePath?: string;
disableHostCheck: boolean;
hmr: boolean;
watch: boolean;
hmrWarning: boolean;
servePathDefaultWarning: boolean;
optimization?: boolean;
aot?: boolean;
sourceMap?: boolean;
vendorSourceMap?: boolean;
/**@deprecated */
evalSourceMap?: boolean;
vendorChunk?: boolean;
commonChunk?: boolean;
baseHref?: string;
deployUrl?: string;
progress?: boolean;
poll?: number;
verbose?: boolean;
}
export declare class DevServerBuilder implements Builder<DevServerBuilderOptions> {
context: BuilderContext;
constructor(context: BuilderContext);
run(builderConfig: BuilderConfiguration<DevServerBuilderOptions>): Observable<BuildEvent>;
buildWebpackConfig(root: Path, projectRoot: Path, host: virtualFs.Host<Stats>, browserOptions: BrowserBuilderSchema): any;
private _buildServerConfig;
private _addLiveReload;
private _addSslConfig;
private _addProxyConfig;
private _buildServePath;
private _findDefaultServePath;
private _getBrowserOptions;
}
export default DevServerBuilder;