Skip to content

Commit 21894b7

Browse files
jbogarthydemgechev
authored andcommitted
docs: add multi-app technique to ng new description
1 parent be3fa89 commit 21894b7

File tree

1 file changed

+9
-3
lines changed
  • packages/angular/cli/commands

1 file changed

+9
-3
lines changed

packages/angular/cli/commands/new.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ Creates and initializes a new Angular app that is the default project for a new
33
Provides interactive prompts for optional configuration, such as adding routing support.
44
All prompts can safely be allowed to default.
55

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.
77

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.
99

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

Comments
 (0)