@@ -8,9 +8,6 @@ import { ng } from '../../../utils/process';
8
8
import { updateJsonFile } from '../../../utils/project' ;
9
9
10
10
export default function ( ) {
11
- // TODO(architect): The compat layer doesn't yet process `includePaths`.
12
- return ;
13
-
14
11
return Promise . resolve ( )
15
12
. then ( ( ) => createDir ( 'src/style-paths' ) )
16
13
. then ( ( ) => writeMultipleFiles ( {
@@ -62,16 +59,16 @@ export default function () {
62
59
// files were created successfully
63
60
. then ( ( ) => ng ( 'build' , '--extract-css' ) )
64
61
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) )
65
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
62
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
66
63
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) )
67
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
64
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
68
65
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) )
69
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) )
66
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) )
70
67
. then ( ( ) => ng ( 'build' , '--extract-css' , '--aot' ) )
71
68
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) )
72
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
69
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
73
70
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) )
74
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
71
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
75
72
. then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) )
76
- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ) ;
73
+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ) ;
77
74
}
0 commit comments