Skip to content

Commit

Permalink
docs: replace app with application
Browse files Browse the repository at this point in the history
(cherry picked from commit 9ddb220)
  • Loading branch information
alan-agius4 authored and clydin committed Mar 14, 2022
1 parent dc08952 commit 0b55bab
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"properties": {
"browserTarget": {
"type": "string",
"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`.",
"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`.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"serverTarget": {
"type": "string",
"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`.",
"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`.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"appModuleBundle": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"servePath": {
"type": "string",
"description": "The pathname where the app will be served."
"description": "The pathname where the application will be served."
},
"disableHostCheck": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/app-shell/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function validateProject(mainPath: string): Rule {
const tmpl = getComponentTemplateInfo(host, componentPath);
const template = getComponentTemplate(host, componentPath, tmpl);
if (!routerOutletCheckRegex.test(template)) {
const errorMsg = `Prerequisite for app shell is to define a router-outlet in your root component.`;
const errorMsg = `Prerequisite for application shell is to define a router-outlet in your root component.`;
context.logger.error(errorMsg);
throw new SchematicsException(errorMsg);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/schematics/angular/app-shell/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$id": "SchematicsAngularAppShell",
"title": "Angular AppShell Options Schema",
"type": "object",
"description": "Generates an app shell for running a server-side version of an app.",
"description": "Generates an application shell for running a server-side version of an app.",
"additionalProperties": false,
"long-description": "./app-shell-long.md",
"properties": {
Expand All @@ -16,13 +16,13 @@
},
"route": {
"type": "string",
"description": "Route path used to produce the app shell.",
"description": "Route path used to produce the application shell.",
"default": "shell"
},
"appId": {
"type": "string",
"format": "html-selector",
"description": "The app ID to use in withServerTransition().",
"description": "The application ID to use in withServerTransition().",
"default": "serverApp"
},
"main": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$id": "SchematicsAngularApp",
"title": "Angular Application Options Schema",
"type": "object",
"description": "Generates a new basic app definition in the \"projects\" subfolder of the workspace.",
"description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
"additionalProperties": false,
"properties": {
"projectRoot": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"app-shell": {
"aliases": ["appShell"],
"factory": "./app-shell",
"description": "Create an app shell.",
"description": "Create an application shell.",
"schema": "./app-shell/schema.json"
},
"library": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/e2e/e2e-long.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The e2e tests are created in a separate app in the `projects` folder of the workspace,
The e2e tests are created in a separate application in the `projects` folder of the workspace,
next to the project being tested.
2 changes: 1 addition & 1 deletion packages/schematics/angular/e2e/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"default": "app-root"
},
"relatedAppName": {
"description": "The name of the app being tested.",
"description": "The name of the application being tested.",
"type": "string"
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/schematics/angular/service-worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ function updateAppModule(mainPath: string): Rule {
}
}

// register SW in app module
// register SW in application module
const importText = tags.stripIndent`
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: ${importModule}.production,
// Register the ServiceWorker as soon as the app is stable
// Register the ServiceWorker as soon as the application is stable
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000'
})
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function (options: ServiceWorkerOptions): Rule {
if (!buildTarget) {
throw targetBuildNotFoundError();
}
const buildOptions = ((buildTarget.options || {}) as unknown) as BrowserBuilderOptions;
const buildOptions = (buildTarget.options || {}) as unknown as BrowserBuilderOptions;
const root = project.root;
buildOptions.serviceWorker = true;
buildOptions.ngswConfigPath = join(normalize(root), 'ngsw-config.json');
Expand Down
6 changes: 3 additions & 3 deletions packages/schematics/angular/service-worker/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('Service Worker Schematic', () => {
new RegExp(
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
'\\1 enabled: environment\\.production,\\n' +
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
'\\1}\\)',
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('Service Worker Schematic', () => {
new RegExp(
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
'\\1 enabled: env\\.production,\\n' +
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
'\\1}\\)',
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('Service Worker Schematic', () => {
new RegExp(
"(\\s+)ServiceWorkerModule\\.register\\('ngsw-worker\\.js', \\{\\n" +
'\\1 enabled: environment\\.production,\\n' +
'\\1 // Register the ServiceWorker as soon as the app is stable\\n' +
'\\1 // Register the ServiceWorker as soon as the application is stable\\n' +
'\\1 // or after 30 seconds \\(whichever comes first\\)\\.\\n' +
"\\1 registrationStrategy: 'registerWhenStable:30000'\\n" +
'\\1}\\)',
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/universal/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"appId": {
"type": "string",
"format": "html-selector",
"description": "The app identifier to use for transition.",
"description": "The application identifier to use for transition.",
"default": "serverApp"
},
"main": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/utility/ng-ast-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function findBootstrapModulePath(host: Tree, mainPath: string): string {

const mainBuffer = host.read(mainPath);
if (!mainBuffer) {
throw new SchematicsException(`Client app main file (${mainPath}) not found`);
throw new SchematicsException(`Client application main file (${mainPath}) not found`);
}
const mainText = mainBuffer.toString('utf-8');
const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular

## Development server

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

## Code scaffolding

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
"default": "@schematics/angular"
},
"newApp": {
"description": "The new app schematic.",
"description": "The new application schematic.",
"type": "string",
"default": "application"
}
Expand Down

0 comments on commit 0b55bab

Please sign in to comment.