File tree 3 files changed +11
-4
lines changed
packages/schematics/angular/application
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -96,3 +96,12 @@ Create an Angular application.
96
96
Do not add dependencies to package.json.
97
97
</p >
98
98
</details >
99
+ <details >
100
+ <summary >project-root</summary >
101
+ <p >
102
+ <code>--project-root</code>
103
+ </p >
104
+ <p >
105
+ Specify root folder for new application and e2e tests
106
+ </p >
107
+ </details >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ To create another app you can use the following command:
7
7
ng generate application my-other-app
8
8
```
9
9
10
- The new application will be generated inside ` projects/my-other-app ` .
10
+ The new application will be generated inside ` projects/my-other-app ` . If you wish to override root folder specify ` --project-root applicationPath `
11
11
12
12
Now we can ` serve ` , ` build ` etc. both the apps by passing the project name with the commands:
13
13
Original file line number Diff line number Diff line change @@ -270,10 +270,8 @@ export default function (options: ApplicationOptions): Rule {
270
270
name : `${ options . name } -e2e` ,
271
271
relatedAppName : options . name ,
272
272
rootSelector : appRootSelector ,
273
+ projectRoot : `${ newProjectRoot } /e2e` ,
273
274
} ;
274
- if ( options . projectRoot !== undefined ) {
275
- e2eOptions . projectRoot = 'e2e' ;
276
- }
277
275
278
276
return chain ( [
279
277
addAppToWorkspaceFile ( options , workspace ) ,
You can’t perform that action at this time.
0 commit comments