Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(@angular/cli): use application instead of app #19256

Merged
merged 1 commit into from Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/angular/cli/commands/new.json
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/schema",
"$id": "ng-cli://commands/new.json",
"description": "Creates a new workspace and an initial Angular app.",
"description": "Creates a new workspace and an initial Angular application.",
"$longDescription": "./new.md",

"$aliases": [ "n" ],
Expand All @@ -16,7 +16,7 @@
"collection": {
"type": "string",
"aliases": [ "c" ],
"description": "A collection of schematics to use in generating the initial app."
"description": "A collection of schematics to use in generating the initial application."
},
"verbose": {
"type": "boolean",
Expand Down
14 changes: 7 additions & 7 deletions packages/angular/cli/commands/new.md
@@ -1,16 +1,16 @@
Creates and initializes a new Angular app that is the default project for a new workspace.
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 app (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder.
* By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder.

* The new app's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
* The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.

* Subsequent apps that you generate in the workspace reside in the `projects/` subfolder.
* Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.

If you plan to have multiple apps in the workspace, you can create an empty workspace by setting the `--createApplication` option to false.
You can then use `ng generate application` to create an initial app.
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.
If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--createApplication` 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.
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/schema.json
Expand Up @@ -76,7 +76,7 @@
"x-user-analytics": 5
},
"skipTests": {
"description": "When true, does not create \"spec.ts\" test files for the app.",
"description": "When true, does not create \"spec.ts\" test files for the application.",
"type": "boolean",
"default": false,
"alias": "S",
Expand Down