Skip to content

Commit 6e7c5e8

Browse files
nlm-proalexeagle
authored andcommitted
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 258df04 commit 6e7c5e8

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
@@ -372,7 +372,7 @@ export default function (options: ApplicationOptions): Rule {
372372
}),
373373
move(sourceDir),
374374
]), MergeStrategy.Overwrite),
375-
schematic('e2e', e2eOptions),
375+
!options.minimal ? schematic('e2e', e2eOptions) : noop(),
376376
options.skipPackageJson ? noop() : addDependenciesToPackageJson(options),
377377
]);
378378
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default function (options: NgNewOptions): Rule {
5757
skipPackageJson: false,
5858
// always 'skipInstall' here, so that we do it after the move
5959
skipInstall: true,
60+
minimal: options.minimal,
6061
};
6162

6263
return chain([

0 commit comments

Comments
 (0)