Skip to content

Commit 0b55bab

Browse files
alan-agius4clydin
authored andcommitted
docs: replace app with application
(cherry picked from commit 9ddb220)
1 parent dc08952 commit 0b55bab

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

packages/angular_devkit/build_angular/src/builders/app-shell/schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"properties": {
77
"browserTarget": {
88
"type": "string",
9-
"description": "A browser builder target use for rendering the app shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
9+
"description": "A browser builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
1010
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1111
},
1212
"serverTarget": {
1313
"type": "string",
14-
"description": "A server builder target use for rendering the app shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
14+
"description": "A server builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
1515
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1616
},
1717
"appModuleBundle": {

packages/angular_devkit/build_angular/src/builders/dev-server/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"servePath": {
7777
"type": "string",
78-
"description": "The pathname where the app will be served."
78+
"description": "The pathname where the application will be served."
7979
},
8080
"disableHostCheck": {
8181
"type": "boolean",

packages/schematics/angular/app-shell/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function validateProject(mainPath: string): Rule {
125125
const tmpl = getComponentTemplateInfo(host, componentPath);
126126
const template = getComponentTemplate(host, componentPath, tmpl);
127127
if (!routerOutletCheckRegex.test(template)) {
128-
const errorMsg = `Prerequisite for app shell is to define a router-outlet in your root component.`;
128+
const errorMsg = `Prerequisite for application shell is to define a router-outlet in your root component.`;
129129
context.logger.error(errorMsg);
130130
throw new SchematicsException(errorMsg);
131131
}

packages/schematics/angular/app-shell/schema.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$id": "SchematicsAngularAppShell",
44
"title": "Angular AppShell Options Schema",
55
"type": "object",
6-
"description": "Generates an app shell for running a server-side version of an app.",
6+
"description": "Generates an application shell for running a server-side version of an app.",
77
"additionalProperties": false,
88
"long-description": "./app-shell-long.md",
99
"properties": {
@@ -16,13 +16,13 @@
1616
},
1717
"route": {
1818
"type": "string",
19-
"description": "Route path used to produce the app shell.",
19+
"description": "Route path used to produce the application shell.",
2020
"default": "shell"
2121
},
2222
"appId": {
2323
"type": "string",
2424
"format": "html-selector",
25-
"description": "The app ID to use in withServerTransition().",
25+
"description": "The application ID to use in withServerTransition().",
2626
"default": "serverApp"
2727
},
2828
"main": {

packages/schematics/angular/application/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$id": "SchematicsAngularApp",
44
"title": "Angular Application Options Schema",
55
"type": "object",
6-
"description": "Generates a new basic app definition in the \"projects\" subfolder of the workspace.",
6+
"description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
77
"additionalProperties": false,
88
"properties": {
99
"projectRoot": {

packages/schematics/angular/collection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"app-shell": {
105105
"aliases": ["appShell"],
106106
"factory": "./app-shell",
107-
"description": "Create an app shell.",
107+
"description": "Create an application shell.",
108108
"schema": "./app-shell/schema.json"
109109
},
110110
"library": {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
The e2e tests are created in a separate app in the `projects` folder of the workspace,
1+
The e2e tests are created in a separate application in the `projects` folder of the workspace,
22
next to the project being tested.

packages/schematics/angular/e2e/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"default": "app-root"
1414
},
1515
"relatedAppName": {
16-
"description": "The name of the app being tested.",
16+
"description": "The name of the application being tested.",
1717
"type": "string"
1818
}
1919
},

packages/schematics/angular/service-worker/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ function updateAppModule(mainPath: string): Rule {
9595
}
9696
}
9797

98-
// register SW in app module
98+
// register SW in application module
9999
const importText = tags.stripIndent`
100100
ServiceWorkerModule.register('ngsw-worker.js', {
101101
enabled: ${importModule}.production,
102-
// Register the ServiceWorker as soon as the app is stable
102+
// Register the ServiceWorker as soon as the application is stable
103103
// or after 30 seconds (whichever comes first).
104104
registrationStrategy: 'registerWhenStable:30000'
105105
})
@@ -146,7 +146,7 @@ export default function (options: ServiceWorkerOptions): Rule {
146146
if (!buildTarget) {
147147
throw targetBuildNotFoundError();
148148
}
149-
const buildOptions = ((buildTarget.options || {}) as unknown) as BrowserBuilderOptions;
149+
const buildOptions = (buildTarget.options || {}) as unknown as BrowserBuilderOptions;
150150
const root = project.root;
151151
buildOptions.serviceWorker = true;
152152
buildOptions.ngswConfigPath = join(normalize(root), 'ngsw-config.json');

packages/schematics/angular/service-worker/index_spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('Service Worker Schematic', () => {
9090
new RegExp(
9191
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
9292
'\\1 enabled: environment\\.production,\\n' +
93-
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
93+
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
9494
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
9595
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
9696
'\\1}\\)',
@@ -128,7 +128,7 @@ describe('Service Worker Schematic', () => {
128128
new RegExp(
129129
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
130130
'\\1 enabled: env\\.production,\\n' +
131-
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
131+
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
132132
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
133133
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
134134
'\\1}\\)',
@@ -166,7 +166,7 @@ describe('Service Worker Schematic', () => {
166166
new RegExp(
167167
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
168168
'\\1 enabled: environment\\.production,\\n' +
169-
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
169+
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
170170
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
171171
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
172172
'\\1}\\)',

packages/schematics/angular/universal/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"appId": {
1717
"type": "string",
1818
"format": "html-selector",
19-
"description": "The app identifier to use for transition.",
19+
"description": "The application identifier to use for transition.",
2020
"default": "serverApp"
2121
},
2222
"main": {

packages/schematics/angular/utility/ng-ast-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function findBootstrapModulePath(host: Tree, mainPath: string): string {
6060

6161
const mainBuffer = host.read(mainPath);
6262
if (!mainBuffer) {
63-
throw new SchematicsException(`Client app main file (${mainPath}) not found`);
63+
throw new SchematicsException(`Client application main file (${mainPath}) not found`);
6464
}
6565
const mainText = mainBuffer.toString('utf-8');
6666
const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);

packages/schematics/angular/workspace/files/README.md.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
44

55
## Development server
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
88

99
## Code scaffolding
1010

tests/angular_devkit/core/json/schema/serializers/schema_benchmark.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
"default": "@schematics/angular"
536536
},
537537
"newApp": {
538-
"description": "The new app schematic.",
538+
"description": "The new application schematic.",
539539
"type": "string",
540540
"default": "application"
541541
}

0 commit comments

Comments
 (0)