@nx/angular 22.7.0-beta.8 → 22.7.0-beta.9

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.
Files changed (50) hide show
  1. package/executors.json +62 -62
  2. package/generators.json +185 -185
  3. package/migrations.json +2412 -2412
  4. package/ng-package.json +19 -19
  5. package/package.json +9 -9
  6. package/project.json +2 -8
  7. package/src/builders/dev-server/schema.json +163 -163
  8. package/src/builders/webpack-browser/schema.json +567 -567
  9. package/src/builders/webpack-server/schema.json +303 -303
  10. package/src/executors/application/schema.json +732 -732
  11. package/src/executors/browser-esbuild/schema.json +548 -548
  12. package/src/executors/delegate-build/schema.json +31 -31
  13. package/src/executors/extract-i18n/schema.json +47 -47
  14. package/src/executors/module-federation-dev-server/schema.json +164 -164
  15. package/src/executors/module-federation-ssr-dev-server/schema.json +119 -119
  16. package/src/executors/ng-packagr-lite/schema.json +35 -35
  17. package/src/executors/package/schema.json +35 -35
  18. package/src/executors/unit-test/schema.json +305 -305
  19. package/src/generators/add-linting/schema.json +48 -48
  20. package/src/generators/application/schema.json +188 -188
  21. package/src/generators/component/schema.json +123 -123
  22. package/src/generators/component-story/schema.json +50 -50
  23. package/src/generators/component-test/schema.json +52 -52
  24. package/src/generators/convert-to-application-executor/schema.json +23 -23
  25. package/src/generators/convert-to-rspack/schema.json +27 -27
  26. package/src/generators/convert-to-with-mf/schema.json +30 -30
  27. package/src/generators/cypress-component-configuration/schema.json +43 -43
  28. package/src/generators/directive/schema.json +89 -89
  29. package/src/generators/federate-module/schema.json +80 -80
  30. package/src/generators/host/schema.json +189 -189
  31. package/src/generators/init/schema.json +31 -31
  32. package/src/generators/library/schema.json +189 -189
  33. package/src/generators/library-secondary-entry-point/schema.json +40 -40
  34. package/src/generators/move/schema.json +53 -53
  35. package/src/generators/ng-add/schema.json +62 -63
  36. package/src/generators/ngrx/schema.json +99 -99
  37. package/src/generators/ngrx-feature-store/schema.json +69 -69
  38. package/src/generators/ngrx-root-store/schema.json +68 -68
  39. package/src/generators/pipe/schema.json +75 -75
  40. package/src/generators/remote/schema.json +182 -182
  41. package/src/generators/scam/schema.json +120 -120
  42. package/src/generators/scam-directive/schema.json +82 -82
  43. package/src/generators/scam-pipe/schema.json +64 -64
  44. package/src/generators/scam-to-standalone/schema.json +29 -29
  45. package/src/generators/setup-mf/schema.json +90 -90
  46. package/src/generators/setup-ssr/schema.json +70 -70
  47. package/src/generators/setup-tailwind/schema.json +39 -39
  48. package/src/generators/stories/schema.json +53 -53
  49. package/src/generators/storybook-configuration/schema.json +80 -80
  50. package/src/generators/web-worker/schema.json +45 -45
package/ng-package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "lib": {
4
- "entryFile": "index.ts"
5
- },
6
- "dest": "../../dist/packages/angular",
7
- "deleteDestPath": false,
8
- "allowedNonPeerDependencies": [
9
- "nx",
10
- "@nx/",
11
- "@phenomnomnominal/tsquery",
12
- "@typescript-eslint/",
13
- "enquirer",
14
- "magic-string",
15
- "picocolors",
16
- "picomatch",
17
- "semver",
18
- "webpack-merge"
19
- ],
20
- "keepLifecycleScripts": true
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "lib": {
4
+ "entryFile": "index.ts"
5
+ },
6
+ "dest": "../../dist/packages/angular",
7
+ "deleteDestPath": false,
8
+ "allowedNonPeerDependencies": [
9
+ "nx",
10
+ "@nx/",
11
+ "@phenomnomnominal/tsquery",
12
+ "@typescript-eslint/",
13
+ "enquirer",
14
+ "magic-string",
15
+ "picocolors",
16
+ "picomatch",
17
+ "semver",
18
+ "webpack-merge"
19
+ ],
20
+ "keepLifecycleScripts": true
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "22.7.0-beta.8",
3
+ "version": "22.7.0-beta.9",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -62,14 +62,14 @@
62
62
  "migrations": "./migrations.json"
63
63
  },
64
64
  "dependencies": {
65
- "@nx/devkit": "22.7.0-beta.8",
66
- "@nx/eslint": "22.7.0-beta.8",
67
- "@nx/js": "22.7.0-beta.8",
68
- "@nx/module-federation": "22.7.0-beta.8",
69
- "@nx/rspack": "22.7.0-beta.8",
70
- "@nx/web": "22.7.0-beta.8",
71
- "@nx/webpack": "22.7.0-beta.8",
72
- "@nx/workspace": "22.7.0-beta.8",
65
+ "@nx/devkit": "22.7.0-beta.9",
66
+ "@nx/eslint": "22.7.0-beta.9",
67
+ "@nx/js": "22.7.0-beta.9",
68
+ "@nx/module-federation": "22.7.0-beta.9",
69
+ "@nx/rspack": "22.7.0-beta.9",
70
+ "@nx/web": "22.7.0-beta.9",
71
+ "@nx/webpack": "22.7.0-beta.9",
72
+ "@nx/workspace": "22.7.0-beta.9",
73
73
  "@phenomnomnominal/tsquery": "~6.1.4",
74
74
  "@typescript-eslint/type-utils": "^8.0.0",
75
75
  "enquirer": "~2.3.6",
package/project.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "projectType": "library",
6
6
  "targets": {
7
7
  "build-ng": {
8
- "dependsOn": ["build-base", "typecheck", "copy-assets"],
8
+ "dependsOn": ["build-base", "typecheck"],
9
9
  "executor": "@nx/angular:package",
10
10
  "options": {
11
11
  "project": "packages/angular/ng-package.json",
@@ -14,13 +14,7 @@
14
14
  "outputs": ["{workspaceRoot}/dist/packages/angular"]
15
15
  },
16
16
  "build": {
17
- "dependsOn": [
18
- "^build",
19
- "build-ng",
20
- "typecheck",
21
- "build-base",
22
- "copy-assets"
23
- ],
17
+ "dependsOn": ["^build", "build-ng", "typecheck", "build-base"],
24
18
  "outputs": ["{workspaceRoot}/dist/packages/angular/README.md"],
25
19
  "command": "node ./scripts/copy-readme.js angular",
26
20
  "inputs": ["copyReadme"]
@@ -1,170 +1,170 @@
1
1
  {
2
- "version": 2,
3
- "continuous": true,
4
- "outputCapture": "direct-nodejs",
5
- "$schema": "http://json-schema.org/draft-07/schema",
6
- "title": "Schema for Webpack Dev Server",
7
- "description": "Serves an Angular application using [webpack](https://webpack.js.org/) when the build target is using a webpack-based executor, or [Vite](https://vite.dev/) when the build target uses an [esbuild](https://esbuild.github.io/)-based executor.",
8
- "examplesFile": "../../../docs/dev-server-examples.md",
9
- "type": "object",
10
- "presets": [
11
- {
12
- "name": "Using a Different Port",
13
- "keys": ["buildTarget", "port"]
14
- }
15
- ],
16
- "properties": {
17
- "buildTarget": {
18
- "type": "string",
19
- "description": "A build builder target to serve in the format of `project:target[:configuration]`.",
20
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
21
- },
22
- "port": {
23
- "type": "number",
24
- "description": "Port to listen on.",
25
- "default": 4200
26
- },
27
- "host": {
28
- "type": "string",
29
- "description": "Host to listen on.",
30
- "default": "localhost"
31
- },
32
- "proxyConfig": {
33
- "type": "string",
34
- "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
35
- },
36
- "ssl": {
37
- "type": "boolean",
38
- "description": "Serve using HTTPS.",
39
- "default": false
40
- },
41
- "sslKey": {
42
- "type": "string",
43
- "description": "SSL key to use for serving HTTPS."
44
- },
45
- "sslCert": {
46
- "type": "string",
47
- "description": "SSL certificate to use for serving HTTPS."
48
- },
49
- "headers": {
50
- "type": "object",
51
- "description": "Custom HTTP headers to be added to all responses.",
52
- "propertyNames": {
53
- "pattern": "^[-_A-Za-z0-9]+$"
54
- },
55
- "additionalProperties": {
56
- "type": "string"
57
- }
58
- },
59
- "open": {
60
- "type": "boolean",
61
- "description": "Opens the url in default browser.",
62
- "default": false,
63
- "alias": "o"
64
- },
65
- "verbose": {
66
- "type": "boolean",
67
- "description": "Adds more details to output logging."
68
- },
69
- "liveReload": {
70
- "type": "boolean",
71
- "description": "Whether to reload the page on change, using live-reload.",
72
- "default": true
73
- },
74
- "publicHost": {
75
- "type": "string",
76
- "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies. This option has no effect when using the 'application' or other esbuild-based builders."
77
- },
78
- "allowedHosts": {
79
- "type": "array",
80
- "description": "List of hosts that are allowed to access the dev server. This option has no effect when using the 'application' or other esbuild-based builders in Angular versions lower than 19.2.0.",
81
- "default": [],
82
- "items": {
83
- "type": "string"
84
- }
85
- },
86
- "define": {
87
- "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced. _Note: this is only supported in Angular versions >= 21.0.0 and it's only applicable for the Vite-based development server._",
88
- "type": "object",
89
- "additionalProperties": {
90
- "type": "string"
91
- }
92
- },
93
- "servePath": {
94
- "type": "string",
95
- "description": "The pathname where the app will be served."
96
- },
97
- "disableHostCheck": {
98
- "type": "boolean",
99
- "description": "Don't verify connected clients are part of allowed hosts. This option has no effect when using the 'application' or other esbuild-based builders in Angular versions lower than 19.2.0.",
100
- "default": false
101
- },
102
- "hmr": {
103
- "type": "boolean",
104
- "description": "Enable hot module replacement."
105
- },
106
- "watch": {
107
- "type": "boolean",
108
- "description": "Rebuild on change.",
109
- "default": true
110
- },
111
- "poll": {
112
- "type": "number",
113
- "description": "Enable and define the file watching poll time period in milliseconds."
114
- },
115
- "forceEsbuild": {
116
- "type": "boolean",
117
- "description": "Force the development server to use the 'browser-esbuild' builder when building. This is a developer preview option for the esbuild-based build system.",
118
- "default": false
119
- },
120
- "inspect": {
121
- "default": false,
122
- "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
123
- "oneOf": [
2
+ "version": 2,
3
+ "continuous": true,
4
+ "outputCapture": "direct-nodejs",
5
+ "$schema": "http://json-schema.org/draft-07/schema",
6
+ "title": "Schema for Webpack Dev Server",
7
+ "description": "Serves an Angular application using [webpack](https://webpack.js.org/) when the build target is using a webpack-based executor, or [Vite](https://vite.dev/) when the build target uses an [esbuild](https://esbuild.github.io/)-based executor.",
8
+ "examplesFile": "../../../docs/dev-server-examples.md",
9
+ "type": "object",
10
+ "presets": [
124
11
  {
125
- "type": "string",
126
- "description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
12
+ "name": "Using a Different Port",
13
+ "keys": ["buildTarget", "port"]
14
+ }
15
+ ],
16
+ "properties": {
17
+ "buildTarget": {
18
+ "type": "string",
19
+ "description": "A build builder target to serve in the format of `project:target[:configuration]`.",
20
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
127
21
  },
128
- { "type": "boolean" }
129
- ]
130
- },
131
- "prebundle": {
132
- "description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled. This option has no effect when using the 'browser' or other Webpack-based builders.",
133
- "oneOf": [
134
- { "type": "boolean" },
135
- {
136
- "type": "object",
137
- "properties": {
138
- "exclude": {
139
- "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
140
- "type": "array",
141
- "items": { "type": "string" }
22
+ "port": {
23
+ "type": "number",
24
+ "description": "Port to listen on.",
25
+ "default": 4200
26
+ },
27
+ "host": {
28
+ "type": "string",
29
+ "description": "Host to listen on.",
30
+ "default": "localhost"
31
+ },
32
+ "proxyConfig": {
33
+ "type": "string",
34
+ "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
35
+ },
36
+ "ssl": {
37
+ "type": "boolean",
38
+ "description": "Serve using HTTPS.",
39
+ "default": false
40
+ },
41
+ "sslKey": {
42
+ "type": "string",
43
+ "description": "SSL key to use for serving HTTPS."
44
+ },
45
+ "sslCert": {
46
+ "type": "string",
47
+ "description": "SSL certificate to use for serving HTTPS."
48
+ },
49
+ "headers": {
50
+ "type": "object",
51
+ "description": "Custom HTTP headers to be added to all responses.",
52
+ "propertyNames": {
53
+ "pattern": "^[-_A-Za-z0-9]+$"
54
+ },
55
+ "additionalProperties": {
56
+ "type": "string"
142
57
  }
143
- },
144
- "additionalProperties": false,
145
- "required": ["exclude"]
58
+ },
59
+ "open": {
60
+ "type": "boolean",
61
+ "description": "Opens the url in default browser.",
62
+ "default": false,
63
+ "alias": "o"
64
+ },
65
+ "verbose": {
66
+ "type": "boolean",
67
+ "description": "Adds more details to output logging."
68
+ },
69
+ "liveReload": {
70
+ "type": "boolean",
71
+ "description": "Whether to reload the page on change, using live-reload.",
72
+ "default": true
73
+ },
74
+ "publicHost": {
75
+ "type": "string",
76
+ "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies. This option has no effect when using the 'application' or other esbuild-based builders."
77
+ },
78
+ "allowedHosts": {
79
+ "type": "array",
80
+ "description": "List of hosts that are allowed to access the dev server. This option has no effect when using the 'application' or other esbuild-based builders in Angular versions lower than 19.2.0.",
81
+ "default": [],
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "define": {
87
+ "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced. _Note: this is only supported in Angular versions >= 21.0.0 and it's only applicable for the Vite-based development server._",
88
+ "type": "object",
89
+ "additionalProperties": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "servePath": {
94
+ "type": "string",
95
+ "description": "The pathname where the app will be served."
96
+ },
97
+ "disableHostCheck": {
98
+ "type": "boolean",
99
+ "description": "Don't verify connected clients are part of allowed hosts. This option has no effect when using the 'application' or other esbuild-based builders in Angular versions lower than 19.2.0.",
100
+ "default": false
101
+ },
102
+ "hmr": {
103
+ "type": "boolean",
104
+ "description": "Enable hot module replacement."
105
+ },
106
+ "watch": {
107
+ "type": "boolean",
108
+ "description": "Rebuild on change.",
109
+ "default": true
110
+ },
111
+ "poll": {
112
+ "type": "number",
113
+ "description": "Enable and define the file watching poll time period in milliseconds."
114
+ },
115
+ "forceEsbuild": {
116
+ "type": "boolean",
117
+ "description": "Force the development server to use the 'browser-esbuild' builder when building. This is a developer preview option for the esbuild-based build system.",
118
+ "default": false
119
+ },
120
+ "inspect": {
121
+ "default": false,
122
+ "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
123
+ "oneOf": [
124
+ {
125
+ "type": "string",
126
+ "description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
127
+ },
128
+ { "type": "boolean" }
129
+ ]
130
+ },
131
+ "prebundle": {
132
+ "description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled. This option has no effect when using the 'browser' or other Webpack-based builders.",
133
+ "oneOf": [
134
+ { "type": "boolean" },
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "exclude": {
139
+ "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
140
+ "type": "array",
141
+ "items": { "type": "string" }
142
+ }
143
+ },
144
+ "additionalProperties": false,
145
+ "required": ["exclude"]
146
+ }
147
+ ]
148
+ },
149
+ "buildLibsFromSource": {
150
+ "type": "boolean",
151
+ "description": "Read buildable libraries from source instead of building them separately. If not set, it will take the value specified in the `buildTarget` options, or it will default to `true` if it's also not set in the `buildTarget` options.",
152
+ "x-priority": "important"
153
+ },
154
+ "esbuildMiddleware": {
155
+ "description": "A list of HTTP request middleware functions.",
156
+ "type": "array",
157
+ "items": {
158
+ "type": "string",
159
+ "description": "The path to the middleware function. Relative to the workspace root."
160
+ }
161
+ },
162
+ "watchDependencies": {
163
+ "type": "boolean",
164
+ "description": "Watch buildable dependencies and rebuild when they change.",
165
+ "default": true
146
166
  }
147
- ]
148
- },
149
- "buildLibsFromSource": {
150
- "type": "boolean",
151
- "description": "Read buildable libraries from source instead of building them separately. If not set, it will take the value specified in the `buildTarget` options, or it will default to `true` if it's also not set in the `buildTarget` options.",
152
- "x-priority": "important"
153
- },
154
- "esbuildMiddleware": {
155
- "description": "A list of HTTP request middleware functions.",
156
- "type": "array",
157
- "items": {
158
- "type": "string",
159
- "description": "The path to the middleware function. Relative to the workspace root."
160
- }
161
167
  },
162
- "watchDependencies": {
163
- "type": "boolean",
164
- "description": "Watch buildable dependencies and rebuild when they change.",
165
- "default": true
166
- }
167
- },
168
- "additionalProperties": false,
169
- "required": ["buildTarget"]
168
+ "additionalProperties": false,
169
+ "required": ["buildTarget"]
170
170
  }