Skip to content

Commit c611469

Browse files
committed
fix(@schematics/angular): --minimal should prevent generating e2e
Don't run the e2e schematic when using application or ng-new schematics with option.minimal set to true. fix #12739
1 parent a53cf44 commit c611469

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/schematics/angular/application/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export default function (options: ApplicationOptions): Rule {
368368
}),
369369
move(sourceDir),
370370
]), MergeStrategy.Overwrite),
371-
schematic('e2e', e2eOptions),
371+
!options.minimal ? schematic('e2e', e2eOptions) : noop(),
372372
]);
373373
};
374374
}

packages/schematics/angular/ng-new/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default function (options: NgNewOptions): Rule {
5656
style: options.style,
5757
skipTests: options.skipTests,
5858
skipPackageJson: false,
59+
minimal: options.minimal,
5960
};
6061

6162
return chain([

0 commit comments

Comments
 (0)