mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-26 01:01:13 +08:00
17 lines
1.1 KiB
Markdown
17 lines
1.1 KiB
Markdown
Creates and initializes a new Angular application that is the default project for a new workspace.
|
|
|
|
Provides interactive prompts for optional configuration, such as adding routing support.
|
|
All prompts can safely be allowed to default.
|
|
|
|
- The new workspace folder is given the specified project name, and contains configuration files at the top level.
|
|
|
|
- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder.
|
|
|
|
- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
|
|
|
|
- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.
|
|
|
|
If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--create-application` option to false.
|
|
You can then use `ng generate application` to create an initial application.
|
|
This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.
|