6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
import * as ts from 'typescript' ;
9
- import { Budget } from '../utilities/bundle-calculator ' ;
9
+ import { AssetPattern , Budget , ExtraEntryPoint } from '../../browser/schema ' ;
10
10
export interface BuildOptions {
11
11
optimization : boolean ;
12
12
environment ?: string ;
@@ -22,8 +22,6 @@ export interface BuildOptions {
22
22
progress ?: boolean ;
23
23
i18nFile ?: string ;
24
24
i18nFormat ?: string ;
25
- i18nOutFile ?: string ;
26
- i18nOutFormat ?: string ;
27
25
i18nLocale ?: string ;
28
26
i18nMissingTranslation ?: string ;
29
27
extractCss ?: boolean ;
@@ -50,32 +48,21 @@ export interface BuildOptions {
50
48
assets : AssetPattern [ ] ;
51
49
scripts : ExtraEntryPoint [ ] ;
52
50
styles : ExtraEntryPoint [ ] ;
53
- stylePreprocessorOptions : {
51
+ stylePreprocessorOptions ? : {
54
52
includePaths : string [ ] ;
55
53
} ;
56
54
lazyModules : string [ ] ;
57
55
platform ?: 'browser' | 'server' ;
58
56
}
59
- export interface AssetPattern {
60
- glob : string ;
61
- input : string ;
62
- output : string ;
63
- allowOutsideOutDir ?: boolean ;
64
- }
65
- export interface ExtraEntryPoint {
66
- input : string ;
67
- output ?: string ;
68
- lazy : boolean ;
57
+ export interface WebpackTestOptions extends BuildOptions {
58
+ codeCoverage ?: boolean ;
59
+ codeCoverageExclude ?: string [ ] ;
69
60
}
70
- export interface WebpackConfigOptions < T extends BuildOptions = BuildOptions > {
61
+ export interface WebpackConfigOptions < T = BuildOptions > {
71
62
root : string ;
72
63
projectRoot : string ;
73
64
buildOptions : T ;
74
65
tsConfig : ts . ParsedCommandLine ;
75
66
tsConfigPath : string ;
76
67
supportES2015 : boolean ;
77
68
}
78
- export interface WebpackTestOptions extends BuildOptions {
79
- codeCoverage ?: boolean ;
80
- codeCoverageExclude ?: string [ ] ;
81
- }
0 commit comments