@nx/angular 22.7.0-beta.7 → 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 +10 -10
  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
@@ -1,34 +1,34 @@
1
1
  {
2
- "version": 2,
3
- "outputCapture": "direct-nodejs",
4
- "$schema": "http://json-schema.org/draft-07/schema",
5
- "title": "Schema for an executor which delegates a build.",
6
- "description": "Delegates the build to a different target while supporting incremental builds.",
7
- "cli": "nx",
8
- "type": "object",
9
- "properties": {
10
- "buildTarget": {
11
- "description": "Build target used for building the application after its dependencies have been built.",
12
- "type": "string"
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "$schema": "http://json-schema.org/draft-07/schema",
5
+ "title": "Schema for an executor which delegates a build.",
6
+ "description": "Delegates the build to a different target while supporting incremental builds.",
7
+ "cli": "nx",
8
+ "type": "object",
9
+ "properties": {
10
+ "buildTarget": {
11
+ "description": "Build target used for building the application after its dependencies have been built.",
12
+ "type": "string"
13
+ },
14
+ "outputPath": {
15
+ "type": "string",
16
+ "description": "The full path for the output directory, relative to the workspace root.",
17
+ "x-completion-type": "directory"
18
+ },
19
+ "tsConfig": {
20
+ "type": "string",
21
+ "description": "The full path for the TypeScript configuration file, relative to the workspace root.",
22
+ "x-completion-type": "file",
23
+ "x-completion-glob": "tsconfig.*.json"
24
+ },
25
+ "watch": {
26
+ "type": "boolean",
27
+ "description": "Whether to run a build when any file changes.",
28
+ "default": false
29
+ }
13
30
  },
14
- "outputPath": {
15
- "type": "string",
16
- "description": "The full path for the output directory, relative to the workspace root.",
17
- "x-completion-type": "directory"
18
- },
19
- "tsConfig": {
20
- "type": "string",
21
- "description": "The full path for the TypeScript configuration file, relative to the workspace root.",
22
- "x-completion-type": "file",
23
- "x-completion-glob": "tsconfig.*.json"
24
- },
25
- "watch": {
26
- "type": "boolean",
27
- "description": "Whether to run a build when any file changes.",
28
- "default": false
29
- }
30
- },
31
- "additionalProperties": false,
32
- "required": ["buildTarget", "outputPath", "tsConfig"],
33
- "examplesFile": "../../../docs/delegate-build-examples.md"
31
+ "additionalProperties": false,
32
+ "required": ["buildTarget", "outputPath", "tsConfig"],
33
+ "examplesFile": "../../../docs/delegate-build-examples.md"
34
34
  }
@@ -1,50 +1,50 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "title": "Schema for Nx extract-i18n Executor",
4
- "description": "Extracts i18n messages from source code.",
5
- "outputCapture": "direct-nodejs",
6
- "type": "object",
7
- "properties": {
8
- "buildTarget": {
9
- "type": "string",
10
- "description": "A builder target to extract i18n messages 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`.",
11
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "title": "Schema for Nx extract-i18n Executor",
4
+ "description": "Extracts i18n messages from source code.",
5
+ "outputCapture": "direct-nodejs",
6
+ "type": "object",
7
+ "properties": {
8
+ "buildTarget": {
9
+ "type": "string",
10
+ "description": "A builder target to extract i18n messages 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`.",
11
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
12
+ },
13
+ "format": {
14
+ "type": "string",
15
+ "description": "Output format for the generated file.",
16
+ "default": "xlf",
17
+ "enum": [
18
+ "xmb",
19
+ "xlf",
20
+ "xlif",
21
+ "xliff",
22
+ "xlf2",
23
+ "xliff2",
24
+ "json",
25
+ "arb",
26
+ "legacy-migrate"
27
+ ]
28
+ },
29
+ "progress": {
30
+ "type": "boolean",
31
+ "description": "Log progress to the console.",
32
+ "default": true
33
+ },
34
+ "outputPath": {
35
+ "type": "string",
36
+ "description": "Path where output will be placed."
37
+ },
38
+ "outFile": {
39
+ "type": "string",
40
+ "description": "Name of the file to output."
41
+ },
42
+ "i18nDuplicateTranslation": {
43
+ "type": "string",
44
+ "description": "How to handle duplicate translations. _Note: this is only available in Angular 20.0.0 and above._",
45
+ "enum": ["error", "warning", "ignore"]
46
+ }
12
47
  },
13
- "format": {
14
- "type": "string",
15
- "description": "Output format for the generated file.",
16
- "default": "xlf",
17
- "enum": [
18
- "xmb",
19
- "xlf",
20
- "xlif",
21
- "xliff",
22
- "xlf2",
23
- "xliff2",
24
- "json",
25
- "arb",
26
- "legacy-migrate"
27
- ]
28
- },
29
- "progress": {
30
- "type": "boolean",
31
- "description": "Log progress to the console.",
32
- "default": true
33
- },
34
- "outputPath": {
35
- "type": "string",
36
- "description": "Path where output will be placed."
37
- },
38
- "outFile": {
39
- "type": "string",
40
- "description": "Name of the file to output."
41
- },
42
- "i18nDuplicateTranslation": {
43
- "type": "string",
44
- "description": "How to handle duplicate translations. _Note: this is only available in Angular 20.0.0 and above._",
45
- "enum": ["error", "warning", "ignore"]
46
- }
47
- },
48
- "additionalProperties": false,
49
- "required": ["buildTarget"]
48
+ "additionalProperties": false,
49
+ "required": ["buildTarget"]
50
50
  }
@@ -1,170 +1,170 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "title": "Schema for Module Federation Dev Server",
4
- "continuous": true,
5
- "outputCapture": "direct-nodejs",
6
- "description": "Serves host [Module Federation](https://module-federation.io/) applications ([webpack](https://webpack.js.org/)-based) allowing to specify which remote applications should be served with the host.",
7
- "type": "object",
8
- "presets": [
9
- {
10
- "name": "Using a Different Port",
11
- "keys": ["buildTarget", "port"]
12
- }
13
- ],
14
- "properties": {
15
- "buildTarget": {
16
- "type": "string",
17
- "description": "A build builder target to serve in the format of `project:target[:configuration]`.",
18
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
19
- },
20
- "port": {
21
- "type": "number",
22
- "description": "Port to listen on.",
23
- "default": 4200
24
- },
25
- "host": {
26
- "type": "string",
27
- "description": "Host to listen on.",
28
- "default": "localhost"
29
- },
30
- "proxyConfig": {
31
- "type": "string",
32
- "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
33
- },
34
- "ssl": {
35
- "type": "boolean",
36
- "description": "Serve using HTTPS.",
37
- "default": false
38
- },
39
- "sslKey": {
40
- "type": "string",
41
- "description": "SSL key to use for serving HTTPS."
42
- },
43
- "sslCert": {
44
- "type": "string",
45
- "description": "SSL certificate to use for serving HTTPS."
46
- },
47
- "headers": {
48
- "type": "object",
49
- "description": "Custom HTTP headers to be added to all responses.",
50
- "propertyNames": {
51
- "pattern": "^[-_A-Za-z0-9]+$"
52
- },
53
- "additionalProperties": {
54
- "type": "string"
55
- }
56
- },
57
- "open": {
58
- "type": "boolean",
59
- "description": "Opens the url in default browser.",
60
- "default": false,
61
- "alias": "o"
62
- },
63
- "verbose": {
64
- "type": "boolean",
65
- "description": "Adds more details to output logging."
66
- },
67
- "liveReload": {
68
- "type": "boolean",
69
- "description": "Whether to reload the page on change, using live-reload.",
70
- "default": true
71
- },
72
- "publicHost": {
73
- "type": "string",
74
- "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."
75
- },
76
- "allowedHosts": {
77
- "type": "array",
78
- "description": "List of hosts that are allowed to access the dev server.",
79
- "default": [],
80
- "items": {
81
- "type": "string"
82
- }
83
- },
84
- "servePath": {
85
- "type": "string",
86
- "description": "The pathname where the app will be served."
87
- },
88
- "disableHostCheck": {
89
- "type": "boolean",
90
- "description": "Don't verify connected clients are part of allowed hosts.",
91
- "default": false
92
- },
93
- "hmr": {
94
- "type": "boolean",
95
- "description": "Enable hot module replacement.",
96
- "default": false
97
- },
98
- "watch": {
99
- "type": "boolean",
100
- "description": "Rebuild on change.",
101
- "default": true
102
- },
103
- "poll": {
104
- "type": "number",
105
- "description": "Enable and define the file watching poll time period in milliseconds."
106
- },
107
- "devRemotes": {
108
- "type": "array",
109
- "items": {
110
- "oneOf": [
111
- {
112
- "type": "string"
113
- },
114
- {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "title": "Schema for Module Federation Dev Server",
4
+ "continuous": true,
5
+ "outputCapture": "direct-nodejs",
6
+ "description": "Serves host [Module Federation](https://module-federation.io/) applications ([webpack](https://webpack.js.org/)-based) allowing to specify which remote applications should be served with the host.",
7
+ "type": "object",
8
+ "presets": [
9
+ {
10
+ "name": "Using a Different Port",
11
+ "keys": ["buildTarget", "port"]
12
+ }
13
+ ],
14
+ "properties": {
15
+ "buildTarget": {
16
+ "type": "string",
17
+ "description": "A build builder target to serve in the format of `project:target[:configuration]`.",
18
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
19
+ },
20
+ "port": {
21
+ "type": "number",
22
+ "description": "Port to listen on.",
23
+ "default": 4200
24
+ },
25
+ "host": {
26
+ "type": "string",
27
+ "description": "Host to listen on.",
28
+ "default": "localhost"
29
+ },
30
+ "proxyConfig": {
31
+ "type": "string",
32
+ "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
33
+ },
34
+ "ssl": {
35
+ "type": "boolean",
36
+ "description": "Serve using HTTPS.",
37
+ "default": false
38
+ },
39
+ "sslKey": {
40
+ "type": "string",
41
+ "description": "SSL key to use for serving HTTPS."
42
+ },
43
+ "sslCert": {
44
+ "type": "string",
45
+ "description": "SSL certificate to use for serving HTTPS."
46
+ },
47
+ "headers": {
115
48
  "type": "object",
116
- "properties": {
117
- "remoteName": {
49
+ "description": "Custom HTTP headers to be added to all responses.",
50
+ "propertyNames": {
51
+ "pattern": "^[-_A-Za-z0-9]+$"
52
+ },
53
+ "additionalProperties": {
118
54
  "type": "string"
119
- },
120
- "configuration": {
55
+ }
56
+ },
57
+ "open": {
58
+ "type": "boolean",
59
+ "description": "Opens the url in default browser.",
60
+ "default": false,
61
+ "alias": "o"
62
+ },
63
+ "verbose": {
64
+ "type": "boolean",
65
+ "description": "Adds more details to output logging."
66
+ },
67
+ "liveReload": {
68
+ "type": "boolean",
69
+ "description": "Whether to reload the page on change, using live-reload.",
70
+ "default": true
71
+ },
72
+ "publicHost": {
73
+ "type": "string",
74
+ "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."
75
+ },
76
+ "allowedHosts": {
77
+ "type": "array",
78
+ "description": "List of hosts that are allowed to access the dev server.",
79
+ "default": [],
80
+ "items": {
121
81
  "type": "string"
122
- }
82
+ }
83
+ },
84
+ "servePath": {
85
+ "type": "string",
86
+ "description": "The pathname where the app will be served."
87
+ },
88
+ "disableHostCheck": {
89
+ "type": "boolean",
90
+ "description": "Don't verify connected clients are part of allowed hosts.",
91
+ "default": false
92
+ },
93
+ "hmr": {
94
+ "type": "boolean",
95
+ "description": "Enable hot module replacement.",
96
+ "default": false
97
+ },
98
+ "watch": {
99
+ "type": "boolean",
100
+ "description": "Rebuild on change.",
101
+ "default": true
102
+ },
103
+ "poll": {
104
+ "type": "number",
105
+ "description": "Enable and define the file watching poll time period in milliseconds."
106
+ },
107
+ "devRemotes": {
108
+ "type": "array",
109
+ "items": {
110
+ "oneOf": [
111
+ {
112
+ "type": "string"
113
+ },
114
+ {
115
+ "type": "object",
116
+ "properties": {
117
+ "remoteName": {
118
+ "type": "string"
119
+ },
120
+ "configuration": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": ["remoteName"],
125
+ "additionalProperties": false
126
+ }
127
+ ]
123
128
  },
124
- "required": ["remoteName"],
125
- "additionalProperties": false
126
- }
127
- ]
128
- },
129
- "description": "List of remote applications to run in development mode (i.e. using serve target).",
130
- "x-priority": "important"
131
- },
132
- "skipRemotes": {
133
- "type": "array",
134
- "items": {
135
- "type": "string"
136
- },
137
- "description": "List of remote applications to not automatically serve, either statically or in development mode. This will not remove the remotes from the `module-federation.config` file, and therefore the application may still try to fetch these remotes.\nThis option is useful if you have other means for serving the `remote` application(s).\n**NOTE:** Remotes that are not in the workspace will be skipped automatically."
138
- },
139
- "pathToManifestFile": {
140
- "type": "string",
141
- "description": "Path to a Module Federation manifest file (e.g. `my/path/to/module-federation.manifest.json`) containing the dynamic remote applications relative to the workspace root."
142
- },
143
- "static": {
144
- "type": "boolean",
145
- "description": "Whether to use a static file server instead of the webpack-dev-server. This should be used for remote applications that are also host applications."
146
- },
147
- "isInitialHost": {
148
- "type": "boolean",
149
- "description": "Whether the host that is running this executor is the first in the project tree to do so.",
150
- "default": true,
151
- "x-priority": "internal"
152
- },
153
- "parallel": {
154
- "type": "number",
155
- "description": "Max number of parallel processes for building static remotes"
156
- },
157
- "staticRemotesPort": {
158
- "type": "number",
159
- "description": "The port at which to serve the file-server for the static remotes."
160
- },
161
- "buildLibsFromSource": {
162
- "type": "boolean",
163
- "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.",
164
- "x-priority": "important"
165
- }
166
- },
167
- "additionalProperties": false,
168
- "required": ["buildTarget"],
169
- "examplesFile": "../../../docs/module-federation-dev-server-examples.md"
129
+ "description": "List of remote applications to run in development mode (i.e. using serve target).",
130
+ "x-priority": "important"
131
+ },
132
+ "skipRemotes": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string"
136
+ },
137
+ "description": "List of remote applications to not automatically serve, either statically or in development mode. This will not remove the remotes from the `module-federation.config` file, and therefore the application may still try to fetch these remotes.\nThis option is useful if you have other means for serving the `remote` application(s).\n**NOTE:** Remotes that are not in the workspace will be skipped automatically."
138
+ },
139
+ "pathToManifestFile": {
140
+ "type": "string",
141
+ "description": "Path to a Module Federation manifest file (e.g. `my/path/to/module-federation.manifest.json`) containing the dynamic remote applications relative to the workspace root."
142
+ },
143
+ "static": {
144
+ "type": "boolean",
145
+ "description": "Whether to use a static file server instead of the webpack-dev-server. This should be used for remote applications that are also host applications."
146
+ },
147
+ "isInitialHost": {
148
+ "type": "boolean",
149
+ "description": "Whether the host that is running this executor is the first in the project tree to do so.",
150
+ "default": true,
151
+ "x-priority": "internal"
152
+ },
153
+ "parallel": {
154
+ "type": "number",
155
+ "description": "Max number of parallel processes for building static remotes"
156
+ },
157
+ "staticRemotesPort": {
158
+ "type": "number",
159
+ "description": "The port at which to serve the file-server for the static remotes."
160
+ },
161
+ "buildLibsFromSource": {
162
+ "type": "boolean",
163
+ "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.",
164
+ "x-priority": "important"
165
+ }
166
+ },
167
+ "additionalProperties": false,
168
+ "required": ["buildTarget"],
169
+ "examplesFile": "../../../docs/module-federation-dev-server-examples.md"
170
170
  }