File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 28
28
"prod" : " environments/environment.prod.ts"
29
29
}
30
30
}
31
- ],<% if(e2e) { %>
31
+ ],
32
32
"e2e" : {
33
33
"protractor" : {
34
34
"config" : " ./protractor.conf.js"
35
35
}
36
- },<% } %>
36
+ },
37
37
"lint" : [
38
38
{
39
39
"project" : " <%= sourceDir %>/tsconfig.app.json"
40
40
},
41
41
{
42
42
"project" : " <%= sourceDir %>/tsconfig.spec.json"
43
- }<% if(e2e) { %> ,
43
+ },
44
44
{
45
45
"project" : " e2e/tsconfig.e2e.json"
46
- }<% } %>
46
+ }
47
47
],
48
48
"test" : {
49
49
"karma" : {
Original file line number Diff line number Diff line change 7
7
"start" : " ng serve" ,
8
8
"build" : " ng build" ,
9
9
"test" : " ng test" ,
10
- "lint" : " ng lint" <% if(e2e) { %> ,
11
- "e2e" : " ng e2e" <% } %>
10
+ "lint" : " ng lint" ,
11
+ "e2e" : " ng e2e"
12
12
},
13
13
"private" : true ,
14
14
"dependencies" : {
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ export default Blueprint.extend({
84
84
fileList = fileList
85
85
. filter ( p => p . indexOf ( 'protractor.conf.js' ) < 0 )
86
86
. filter ( p => p . indexOf ( 'app.po.ts' ) < 0 )
87
- . filter ( p => p . indexOf ( 'tsconfig.e2e.json' ) < 0 )
88
87
. filter ( p => p . indexOf ( 'app.e2e-spec.ts' ) < 0 ) ;
89
88
}
90
89
Original file line number Diff line number Diff line change @@ -89,9 +89,7 @@ const E2eCommand = Command.extend({
89
89
if ( ! commandOptions . config ) {
90
90
const e2eConfig = CliConfig . fromProject ( ) . config . e2e ;
91
91
92
- if ( ! e2eConfig ) {
93
- throw new SilentError ( 'No e2e config found in .angular-cli.json.' ) ;
94
- } else if ( ! e2eConfig . protractor . config ) {
92
+ if ( ! e2eConfig . protractor . config ) {
95
93
throw new SilentError ( 'No protractor config found in .angular-cli.json.' ) ;
96
94
}
97
95
You can’t perform that action at this time.
0 commit comments