You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/angular/cli/commands/new.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,14 @@ Creates and initializes a new Angular app that is the default project for a new
3
3
Provides interactive prompts for optional configuration, such as adding routing support.
4
4
All prompts can safely be allowed to default.
5
5
6
-
* The new workspace folder is given the specified project name, and contains configuration files at the top level.
6
+
* The new workspace folder is given the specified project name, and contains configuration files at the top level.
7
7
8
-
*The new app files are placed in the `src/` subfolder. A corresponding end-to-end test app is placed in the `e2e/` subfolder.
8
+
*By default, the files for a new initial app (with the same name as the workspace) are placed in the `src/` subfolder. A corresponding end-to-end test app is placed in the `e2e/` subfolder.
9
9
10
-
* The new app's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
10
+
* The new app's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
11
+
12
+
* Subsequent apps that you generate in the workspace reside in the `projects/` subfolder.
13
+
14
+
If you plan to have multiple apps in the workspace, you can create an empty workspace by setting the `--createApplication` option to false.
15
+
You can then use `ng generate application` to create an initial app.
16
+
This allows a workspace name different from the initial app name, and ensures that all apps reside in the `/projects` subfolder, matching the structure of the configuration file.
0 commit comments