@schematics/angular 19.1.0-next.2 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/app-shell/schema.d.ts +4 -3
- package/app-shell/schema.json +3 -3
- package/application/schema.d.ts +40 -25
- package/application/schema.js +3 -2
- package/application/schema.json +18 -18
- package/class/schema.d.ts +13 -6
- package/class/schema.json +6 -6
- package/component/schema.d.ts +47 -29
- package/component/schema.js +5 -4
- package/component/schema.json +21 -21
- package/config/schema.d.ts +6 -4
- package/config/schema.js +1 -1
- package/config/schema.json +3 -3
- package/directive/schema.d.ts +25 -13
- package/directive/schema.json +12 -12
- package/enum/schema.d.ts +11 -6
- package/enum/schema.json +5 -5
- package/environments/schema.d.ts +5 -2
- package/environments/schema.json +2 -2
- package/guard/schema.d.ts +18 -9
- package/guard/schema.json +8 -8
- package/interceptor/schema.d.ts +16 -7
- package/interceptor/schema.json +7 -7
- package/interface/schema.d.ts +14 -6
- package/interface/schema.json +6 -6
- package/library/index.js +3 -3
- package/library/schema.d.ts +22 -10
- package/library/schema.json +9 -9
- package/migrations/use-application-builder/migration.js +4 -0
- package/ng-new/schema.d.ts +51 -31
- package/ng-new/schema.js +5 -2
- package/ng-new/schema.json +20 -20
- package/package.json +3 -3
- package/pipe/schema.d.ts +21 -10
- package/pipe/schema.json +10 -10
- package/resolver/schema.d.ts +15 -8
- package/resolver/schema.json +8 -8
- package/server/schema.d.ts +7 -4
- package/server/schema.json +4 -4
- package/service/schema.d.ts +12 -6
- package/service/schema.json +6 -6
- package/service-worker/schema.d.ts +7 -3
- package/service-worker/schema.json +3 -3
- package/ssr/schema.d.ts +12 -4
- package/ssr/schema.json +4 -3
- package/utility/latest-versions/package.json +2 -2
- package/utility/latest-versions.d.ts +1 -0
- package/utility/latest-versions.js +3 -2
- package/utility/workspace-models.d.ts +1 -0
- package/utility/workspace-models.js +1 -0
- package/web-worker/schema.d.ts +11 -5
- package/web-worker/schema.json +5 -5
- package/workspace/schema.d.ts +15 -10
- package/workspace/schema.js +1 -1
- package/workspace/schema.json +6 -6
package/ssr/schema.json
CHANGED
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
"$id": "SchematicsAngularSSR",
|
|
4
4
|
"title": "Angular SSR Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
|
+
"description": "Enables Server-Side Rendering (SSR) for your Angular application. SSR allows your app to be rendered on the server, which can significantly improve its initial load performance and Search Engine Optimization (SEO). This schematic configures your project for SSR, generating the necessary files and making the required modifications to your project's structure.",
|
|
6
7
|
"properties": {
|
|
7
8
|
"project": {
|
|
8
9
|
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
+
"description": "The name of the project you want to enable SSR for.",
|
|
10
11
|
"$default": {
|
|
11
12
|
"$source": "projectName"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
15
|
"skipInstall": {
|
|
15
|
-
"description": "Skip
|
|
16
|
+
"description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
|
|
16
17
|
"type": "boolean",
|
|
17
18
|
"default": false
|
|
18
19
|
},
|
|
19
20
|
"serverRouting": {
|
|
20
|
-
"description": "
|
|
21
|
+
"description": "Configure the server application to use the Angular Server Routing API and App Engine APIs (currently in Developer Preview).",
|
|
21
22
|
"type": "boolean"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"comment": "This file is needed so that dependencies are synced by Renovate.",
|
|
4
4
|
"private": true,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@angular/core": "^19.1.0
|
|
6
|
+
"@angular/core": "^19.1.0",
|
|
7
7
|
"@types/express": "^4.17.17",
|
|
8
8
|
"@types/jasmine": "~5.1.0",
|
|
9
9
|
"@types/node": "^18.18.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"karma-jasmine": "~5.1.0",
|
|
18
18
|
"karma": "~6.4.0",
|
|
19
19
|
"less": "^4.2.0",
|
|
20
|
-
"ng-packagr": "^19.1.0
|
|
20
|
+
"ng-packagr": "^19.1.0",
|
|
21
21
|
"postcss": "^8.4.38",
|
|
22
22
|
"protractor": "~7.0.0",
|
|
23
23
|
"rxjs": "~7.8.0",
|
|
@@ -15,6 +15,7 @@ exports.latestVersions = {
|
|
|
15
15
|
...dependencies,
|
|
16
16
|
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
|
|
17
17
|
Angular: dependencies['@angular/core'],
|
|
18
|
-
DevkitBuildAngular: '^19.1.0
|
|
19
|
-
|
|
18
|
+
DevkitBuildAngular: '^19.1.0',
|
|
19
|
+
AngularBuild: '^19.1.0',
|
|
20
|
+
AngularSSR: '^19.1.0',
|
|
20
21
|
};
|
|
@@ -26,6 +26,7 @@ export declare enum Builders {
|
|
|
26
26
|
Karma = "@angular-devkit/build-angular:karma",
|
|
27
27
|
TsLint = "@angular-devkit/build-angular:tslint",
|
|
28
28
|
NgPackagr = "@angular-devkit/build-angular:ng-packagr",
|
|
29
|
+
BuildNgPackagr = "@angular/build:ng-packagr",
|
|
29
30
|
DevServer = "@angular-devkit/build-angular:dev-server",
|
|
30
31
|
ExtractI18n = "@angular-devkit/build-angular:extract-i18n",
|
|
31
32
|
Protractor = "@angular-devkit/build-angular:private-protractor",
|
|
@@ -31,6 +31,7 @@ var Builders;
|
|
|
31
31
|
Builders["Karma"] = "@angular-devkit/build-angular:karma";
|
|
32
32
|
Builders["TsLint"] = "@angular-devkit/build-angular:tslint";
|
|
33
33
|
Builders["NgPackagr"] = "@angular-devkit/build-angular:ng-packagr";
|
|
34
|
+
Builders["BuildNgPackagr"] = "@angular/build:ng-packagr";
|
|
34
35
|
Builders["DevServer"] = "@angular-devkit/build-angular:dev-server";
|
|
35
36
|
Builders["ExtractI18n"] = "@angular-devkit/build-angular:extract-i18n";
|
|
36
37
|
Builders["Protractor"] = "@angular-devkit/build-angular:private-protractor";
|
package/web-worker/schema.d.ts
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Creates a new
|
|
2
|
+
* Creates a new web worker in your project. Web workers allow you to run JavaScript code in
|
|
3
|
+
* the background, improving the performance and responsiveness of your application by
|
|
4
|
+
* offloading computationally intensive tasks. This schematic generates the necessary files
|
|
5
|
+
* for a new web worker and provides an optional code snippet to demonstrate its usage.
|
|
3
6
|
*/
|
|
4
7
|
export interface Schema {
|
|
5
8
|
/**
|
|
6
|
-
* The name
|
|
9
|
+
* The name for the new web worker. This will be used to create the worker file (e.g.,
|
|
10
|
+
* `my-worker.worker.ts`).
|
|
7
11
|
*/
|
|
8
12
|
name: string;
|
|
9
13
|
/**
|
|
10
|
-
* The path
|
|
14
|
+
* The path where the web worker file should be created, relative to the current workspace.
|
|
15
|
+
* If not specified, the worker will be created in the current directory.
|
|
11
16
|
*/
|
|
12
17
|
path?: string;
|
|
13
18
|
/**
|
|
14
|
-
* The name of the project.
|
|
19
|
+
* The name of the project where the web worker should be created. If not specified, the CLI
|
|
20
|
+
* will determine the project from the current directory.
|
|
15
21
|
*/
|
|
16
22
|
project: string;
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* Generate a code snippet that demonstrates how to create and use the new web worker.
|
|
19
25
|
*/
|
|
20
26
|
snippet?: boolean;
|
|
21
27
|
}
|
package/web-worker/schema.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Angular Web Worker Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"description": "Creates a new
|
|
7
|
+
"description": "Creates a new web worker in your project. Web workers allow you to run JavaScript code in the background, improving the performance and responsiveness of your application by offloading computationally intensive tasks. This schematic generates the necessary files for a new web worker and provides an optional code snippet to demonstrate its usage.",
|
|
8
8
|
"properties": {
|
|
9
9
|
"path": {
|
|
10
10
|
"type": "string",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"$default": {
|
|
13
13
|
"$source": "workingDirectory"
|
|
14
14
|
},
|
|
15
|
-
"description": "The path
|
|
15
|
+
"description": "The path where the web worker file should be created, relative to the current workspace. If not specified, the worker will be created in the current directory.",
|
|
16
16
|
"visible": false
|
|
17
17
|
},
|
|
18
18
|
"project": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"description": "The name of the project.",
|
|
20
|
+
"description": "The name of the project where the web worker should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
21
21
|
"$default": {
|
|
22
22
|
"$source": "projectName"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"name": {
|
|
26
26
|
"type": "string",
|
|
27
|
-
"description": "The name
|
|
27
|
+
"description": "The name for the new web worker. This will be used to create the worker file (e.g., `my-worker.worker.ts`).",
|
|
28
28
|
"$default": {
|
|
29
29
|
"$source": "argv",
|
|
30
30
|
"index": 0
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"snippet": {
|
|
35
35
|
"type": "boolean",
|
|
36
36
|
"default": true,
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Generate a code snippet that demonstrates how to create and use the new web worker."
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"required": ["name", "project"]
|
package/workspace/schema.d.ts
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Creates a new Angular workspace. A workspace provides a structured environment for
|
|
3
|
+
* developing multiple projects, allowing you to manage dependencies, configurations, and
|
|
4
|
+
* build processes for a collection of applications and libraries. This schematic sets up
|
|
5
|
+
* the basic structure of the workspace and installs the necessary Angular dependencies.
|
|
4
6
|
*/
|
|
5
7
|
export interface Schema {
|
|
6
8
|
/**
|
|
7
|
-
* Create a workspace without any testing frameworks.
|
|
9
|
+
* Create a workspace without any testing frameworks. This is intended for learning purposes
|
|
10
|
+
* and simple experimentation, not for production applications.
|
|
8
11
|
*/
|
|
9
12
|
minimal?: boolean;
|
|
10
13
|
/**
|
|
11
|
-
* The name
|
|
14
|
+
* The name for the new workspace. This name will be used for the root directory and will be
|
|
15
|
+
* referenced in various configuration files.
|
|
12
16
|
*/
|
|
13
17
|
name: string;
|
|
14
18
|
/**
|
|
15
|
-
* The path where new projects will be created
|
|
19
|
+
* The path where new projects will be created within the workspace, relative to the
|
|
20
|
+
* workspace root. By default, new projects are created in the `projects` directory.
|
|
16
21
|
*/
|
|
17
22
|
newProjectRoot?: string;
|
|
18
23
|
/**
|
|
19
|
-
* The package manager
|
|
24
|
+
* The package manager to use for installing dependencies.
|
|
20
25
|
*/
|
|
21
26
|
packageManager?: PackageManager;
|
|
22
27
|
/**
|
|
23
|
-
*
|
|
24
|
-
* maintainability and catch bugs
|
|
25
|
-
* https://angular.dev/tools/cli/template-typecheck#strict-mode
|
|
28
|
+
* Enable stricter type checking and bundle budget settings for projects created within the
|
|
29
|
+
* workspace. This helps improve maintainability and catch bugs early on. For more
|
|
30
|
+
* information, see https://angular.dev/tools/cli/template-typecheck#strict-mode
|
|
26
31
|
*/
|
|
27
32
|
strict?: boolean;
|
|
28
33
|
/**
|
|
@@ -31,7 +36,7 @@ export interface Schema {
|
|
|
31
36
|
version: string;
|
|
32
37
|
}
|
|
33
38
|
/**
|
|
34
|
-
* The package manager
|
|
39
|
+
* The package manager to use for installing dependencies.
|
|
35
40
|
*/
|
|
36
41
|
export declare enum PackageManager {
|
|
37
42
|
Bun = "bun",
|
package/workspace/schema.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.PackageManager = void 0;
|
|
6
6
|
/**
|
|
7
|
-
* The package manager
|
|
7
|
+
* The package manager to use for installing dependencies.
|
|
8
8
|
*/
|
|
9
9
|
var PackageManager;
|
|
10
10
|
(function (PackageManager) {
|
package/workspace/schema.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
3
|
"$id": "SchematicsAngularWorkspace",
|
|
4
4
|
"title": "Angular Workspace Options Schema",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Creates a new Angular workspace. A workspace provides a structured environment for developing multiple projects, allowing you to manage dependencies, configurations, and build processes for a collection of applications and libraries. This schematic sets up the basic structure of the workspace and installs the necessary Angular dependencies.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"name": {
|
|
10
|
-
"description": "The name
|
|
10
|
+
"description": "The name for the new workspace. This name will be used for the root directory and will be referenced in various configuration files.",
|
|
11
11
|
"type": "string",
|
|
12
12
|
"$default": {
|
|
13
13
|
"$source": "argv",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"newProjectRoot": {
|
|
18
|
-
"description": "The path where new projects will be created.",
|
|
18
|
+
"description": "The path where new projects will be created within the workspace, relative to the workspace root. By default, new projects are created in the `projects` directory.",
|
|
19
19
|
"type": "string",
|
|
20
20
|
"visible": "false"
|
|
21
21
|
},
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"minimal": {
|
|
31
|
-
"description": "Create a workspace without any testing frameworks.
|
|
31
|
+
"description": "Create a workspace without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
|
|
32
32
|
"type": "boolean",
|
|
33
33
|
"default": false
|
|
34
34
|
},
|
|
35
35
|
"strict": {
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "Enable stricter type checking and bundle budget settings for projects created within the workspace. This helps improve maintainability and catch bugs early on. For more information, see https://angular.dev/tools/cli/template-typecheck#strict-mode",
|
|
37
37
|
"type": "boolean",
|
|
38
38
|
"default": true
|
|
39
39
|
},
|
|
40
40
|
"packageManager": {
|
|
41
|
-
"description": "The package manager
|
|
41
|
+
"description": "The package manager to use for installing dependencies.",
|
|
42
42
|
"type": "string",
|
|
43
43
|
"enum": ["npm", "yarn", "pnpm", "cnpm", "bun"]
|
|
44
44
|
}
|