File tree 6 files changed +30
-16
lines changed
packages/angular_devkit/build_angular/src
6 files changed +30
-16
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ import {
15
15
Budget ,
16
16
CurrentFileReplacement ,
17
17
ExtraEntryPoint ,
18
+ NormalizedOptimization ,
19
+ NormalizedSourceMaps ,
18
20
} from '../../browser/schema' ;
19
- import { NormalizedOptimization , NormalizedSourceMaps } from '../../utils/index' ;
20
21
21
22
export interface BuildOptions {
22
23
optimization : NormalizedOptimization ;
Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
+
8
9
export interface BrowserBuilderSchema {
9
10
/**
10
11
* List of static application assets.
@@ -409,6 +410,18 @@ export enum BudgetType {
409
410
// Right now this normalization has to be done in all other builders that make use of the
410
411
// BrowserBuildSchema and BrowserBuilder.buildWebpackConfig.
411
412
// It would really help if it happens during architect.validateBuilderOptions, or similar.
413
+ export interface NormalizedOptimization {
414
+ scripts : boolean ;
415
+ styles : boolean ;
416
+ }
417
+
418
+ export interface NormalizedSourceMaps {
419
+ scripts : boolean ;
420
+ styles : boolean ;
421
+ hidden : boolean ;
422
+ vendor : boolean ;
423
+ }
424
+
412
425
export interface NormalizedBrowserBuilderSchema extends
413
426
Pick <
414
427
BrowserBuilderSchema ,
Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
- import { BrowserBuilderSchema } from '../browser/schema' ;
8
+ import {
9
+ AssetPatternObject ,
10
+ BrowserBuilderSchema ,
11
+ CurrentFileReplacement ,
12
+ NormalizedSourceMaps ,
13
+ } from '../browser/schema' ;
9
14
10
15
export interface KarmaBuilderSchema extends Pick < BrowserBuilderSchema ,
11
16
'assets' | 'main' | 'polyfills' | 'tsConfig' | 'scripts' | 'styles' | 'stylePreprocessorOptions'
Original file line number Diff line number Diff line change 8
8
9
9
import {
10
10
BrowserBuilderSchema ,
11
+ CurrentFileReplacement ,
11
12
FileReplacement ,
13
+ NormalizedOptimization ,
14
+ NormalizedSourceMaps ,
12
15
OptimizationObject ,
13
16
SourceMapOptions ,
14
17
} from '../browser/schema' ;
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { OptimizationOptions , SourceMapOptions } from '../browser/schema' ;
10
-
11
- export interface NormalizedOptimization {
12
- scripts : boolean ;
13
- styles : boolean ;
14
- }
9
+ import {
10
+ NormalizedOptimization ,
11
+ OptimizationOptions ,
12
+ SourceMapOptions ,
13
+ } from '../browser/schema' ;
15
14
16
15
export function normalizeOptimization ( optimization : OptimizationOptions ) : NormalizedOptimization {
17
16
const scripts = ! ! ( typeof optimization === 'object' ? optimization . scripts : optimization ) ;
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { SourceMapOptions } from '../browser/schema' ;
10
-
11
- export interface NormalizedSourceMaps {
12
- scripts : boolean ;
13
- styles : boolean ;
14
- hidden : boolean ;
15
- vendor : boolean ;
16
- }
9
+ import { NormalizedSourceMaps , SourceMapOptions } from '../browser/schema' ;
17
10
18
11
export function normalizeSourceMaps ( sourceMap : SourceMapOptions ) : NormalizedSourceMaps {
19
12
const scripts = ! ! ( typeof sourceMap === 'object' ? sourceMap . scripts : sourceMap ) ;
You can’t perform that action at this time.
0 commit comments