Skip to content

Commit b0db305

Browse files
committed
Revert "fix(@angular/cli): fix skip e2e"
This reverts commit 4aa17b2.
1 parent bf18a23 commit b0db305

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

packages/@angular/cli/blueprints/ng/files/angular-cli.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@
2828
"prod": "environments/environment.prod.ts"
2929
}
3030
}
31-
],<% if(e2e) { %>
31+
],
3232
"e2e": {
3333
"protractor": {
3434
"config": "./protractor.conf.js"
3535
}
36-
},<% } %>
36+
},
3737
"lint": [
3838
{
3939
"project": "<%= sourceDir %>/tsconfig.app.json"
4040
},
4141
{
4242
"project": "<%= sourceDir %>/tsconfig.spec.json"
43-
}<% if(e2e) { %>,
43+
},
4444
{
4545
"project": "e2e/tsconfig.e2e.json"
46-
}<% } %>
46+
}
4747
],
4848
"test": {
4949
"karma": {

packages/@angular/cli/blueprints/ng/files/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "ng serve",
88
"build": "ng build",
99
"test": "ng test",
10-
"lint": "ng lint"<% if(e2e) { %>,
11-
"e2e": "ng e2e"<% } %>
10+
"lint": "ng lint",
11+
"e2e": "ng e2e"
1212
},
1313
"private": true,
1414
"dependencies": {

packages/@angular/cli/blueprints/ng/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export default Blueprint.extend({
8484
fileList = fileList
8585
.filter(p => p.indexOf('protractor.conf.js') < 0)
8686
.filter(p => p.indexOf('app.po.ts') < 0)
87-
.filter(p => p.indexOf('tsconfig.e2e.json') < 0)
8887
.filter(p => p.indexOf('app.e2e-spec.ts') < 0);
8988
}
9089

packages/@angular/cli/commands/e2e.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ const E2eCommand = Command.extend({
8989
if (!commandOptions.config) {
9090
const e2eConfig = CliConfig.fromProject().config.e2e;
9191

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) {
9593
throw new SilentError('No protractor config found in .angular-cli.json.');
9694
}
9795

0 commit comments

Comments
 (0)