@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,191 +1,191 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxMFHost",
4
- "cli": "nx",
5
- "title": "Nx Module Federation Consumer (Host) Application",
6
- "description": "Create an Angular Consumer (Host) Module Federation Application.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g @nx/angular:host appName --remotes=remote1",
11
- "description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the Producer (remote) application to this application's configuration"
12
- },
13
- {
14
- "command": "nx g @nx/angular:consumer appName --producers=remote1",
15
- "description": "Create an Angular application with configuration in place for Module Federation. If the `producers` option is provided, attach the Producer (remote) application to this application's configuration"
16
- }
17
- ],
18
- "properties": {
19
- "directory": {
20
- "description": "The directory of the new application.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "Which directory do you want to create the application in?"
27
- },
28
- "name": {
29
- "type": "string",
30
- "description": "The name to give to the Consumer (host) Angular application.",
31
- "pattern": "^[a-zA-Z][^:]*$",
32
- "x-priority": "important"
33
- },
34
- "remotes": {
35
- "type": "array",
36
- "description": "The names of the Producers (remote) applications to add to the Consumer (host).",
37
- "x-priority": "important",
38
- "alias": "producers"
39
- },
40
- "bundler": {
41
- "type": "string",
42
- "description": "The bundler to use for the host application.",
43
- "default": "webpack",
44
- "enum": ["webpack", "rspack"]
45
- },
46
- "dynamic": {
47
- "type": "boolean",
48
- "description": "Should the host application use dynamic federation?",
49
- "default": false
50
- },
51
- "style": {
52
- "description": "The file extension to be used for style files.",
53
- "type": "string",
54
- "default": "css",
55
- "enum": ["css", "scss", "sass", "less"],
56
- "x-prompt": {
57
- "message": "Which stylesheet format would you like to use?",
58
- "type": "list",
59
- "items": [
60
- {
61
- "value": "css",
62
- "label": "CSS"
63
- },
64
- {
65
- "value": "scss",
66
- "label": "SASS(.scss) [ https://sass-lang.com ]"
67
- },
68
- {
69
- "value": "sass",
70
- "label": "SASS(.sass) [ https://sass-lang.com ]"
71
- },
72
- {
73
- "value": "less",
74
- "label": "LESS [ https://lesscss.org ]"
75
- }
76
- ]
77
- }
78
- },
79
- "inlineStyle": {
80
- "description": "Specifies if the style will be in the ts file.",
81
- "type": "boolean",
82
- "default": false,
83
- "alias": "s"
84
- },
85
- "inlineTemplate": {
86
- "description": "Specifies if the template will be in the ts file.",
87
- "type": "boolean",
88
- "default": false,
89
- "alias": "t"
90
- },
91
- "viewEncapsulation": {
92
- "description": "Specifies the view encapsulation strategy.",
93
- "enum": ["Emulated", "None", "ShadowDom"],
94
- "type": "string"
95
- },
96
- "prefix": {
97
- "type": "string",
98
- "format": "html-selector",
99
- "description": "The prefix to apply to generated selectors.",
100
- "alias": "p"
101
- },
102
- "skipTests": {
103
- "description": "Skip creating spec files.",
104
- "type": "boolean",
105
- "default": false,
106
- "alias": "S"
107
- },
108
- "skipPackageJson": {
109
- "type": "boolean",
110
- "default": false,
111
- "description": "Do not add dependencies to `package.json`.",
112
- "x-priority": "internal"
113
- },
114
- "skipPostInstall": {
115
- "type": "boolean",
116
- "default": false,
117
- "description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`.",
118
- "x-priority": "internal"
119
- },
120
- "unitTestRunner": {
121
- "type": "string",
122
- "enum": ["vitest-analog", "jest", "none"],
123
- "description": "Test runner to use for unit tests. `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-analog` for Angular versions >= 21.0.0, otherwise `jest`.",
124
- "x-prompt": "Which unit test runner would you like to use?"
125
- },
126
- "e2eTestRunner": {
127
- "type": "string",
128
- "enum": ["playwright", "cypress", "none"],
129
- "description": "Test runner to use for end to end (E2E) tests.",
130
- "x-prompt": "Which E2E test runner would you like to use?",
131
- "default": "playwright"
132
- },
133
- "tags": {
134
- "type": "string",
135
- "description": "Add tags to the application (used for linting)."
136
- },
137
- "linter": {
138
- "description": "The tool to use for running lint checks.",
139
- "type": "string",
140
- "enum": ["eslint", "none"],
141
- "default": "eslint"
142
- },
143
- "backendProject": {
144
- "type": "string",
145
- "description": "Backend project that provides data to this application. This sets up `proxy.config.json`."
146
- },
147
- "strict": {
148
- "type": "boolean",
149
- "description": "Create an application with stricter type checking and build optimization options.",
150
- "default": true
151
- },
152
- "setParserOptionsProject": {
153
- "type": "boolean",
154
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
155
- "default": false
156
- },
157
- "addTailwind": {
158
- "type": "boolean",
159
- "description": "Whether to configure Tailwind CSS for the application.",
160
- "default": false
161
- },
162
- "skipFormat": {
163
- "description": "Skip formatting files.",
164
- "type": "boolean",
165
- "default": false,
166
- "x-priority": "internal"
167
- },
168
- "standalone": {
169
- "type": "boolean",
170
- "description": "Whether to generate a Consumer (host) application that uses standalone components.",
171
- "default": true
172
- },
173
- "ssr": {
174
- "description": "Whether to configure SSR for the Consumer (host) application",
175
- "type": "boolean",
176
- "default": false,
177
- "x-priority": "important"
178
- },
179
- "zoneless": {
180
- "description": "Generate an application that does not use `zone.js`. It defaults to `true`. _Note: this is only supported in Angular versions >= 21.0.0_",
181
- "type": "boolean"
182
- },
183
- "typescriptConfiguration": {
184
- "type": "boolean",
185
- "description": "Whether the module federation configuration and webpack configuration files should use TS.",
186
- "default": true
187
- }
188
- },
189
- "additionalProperties": false,
190
- "required": ["directory"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxMFHost",
4
+ "cli": "nx",
5
+ "title": "Nx Module Federation Consumer (Host) Application",
6
+ "description": "Create an Angular Consumer (Host) Module Federation Application.",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g @nx/angular:host appName --remotes=remote1",
11
+ "description": "Create an Angular application with configuration in place for Module Federation. If the `remotes` option is provided, attach the Producer (remote) application to this application's configuration"
12
+ },
13
+ {
14
+ "command": "nx g @nx/angular:consumer appName --producers=remote1",
15
+ "description": "Create an Angular application with configuration in place for Module Federation. If the `producers` option is provided, attach the Producer (remote) application to this application's configuration"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "directory": {
20
+ "description": "The directory of the new application.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "Which directory do you want to create the application in?"
27
+ },
28
+ "name": {
29
+ "type": "string",
30
+ "description": "The name to give to the Consumer (host) Angular application.",
31
+ "pattern": "^[a-zA-Z][^:]*$",
32
+ "x-priority": "important"
33
+ },
34
+ "remotes": {
35
+ "type": "array",
36
+ "description": "The names of the Producers (remote) applications to add to the Consumer (host).",
37
+ "x-priority": "important",
38
+ "alias": "producers"
39
+ },
40
+ "bundler": {
41
+ "type": "string",
42
+ "description": "The bundler to use for the host application.",
43
+ "default": "webpack",
44
+ "enum": ["webpack", "rspack"]
45
+ },
46
+ "dynamic": {
47
+ "type": "boolean",
48
+ "description": "Should the host application use dynamic federation?",
49
+ "default": false
50
+ },
51
+ "style": {
52
+ "description": "The file extension to be used for style files.",
53
+ "type": "string",
54
+ "default": "css",
55
+ "enum": ["css", "scss", "sass", "less"],
56
+ "x-prompt": {
57
+ "message": "Which stylesheet format would you like to use?",
58
+ "type": "list",
59
+ "items": [
60
+ {
61
+ "value": "css",
62
+ "label": "CSS"
63
+ },
64
+ {
65
+ "value": "scss",
66
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
67
+ },
68
+ {
69
+ "value": "sass",
70
+ "label": "SASS(.sass) [ https://sass-lang.com ]"
71
+ },
72
+ {
73
+ "value": "less",
74
+ "label": "LESS [ https://lesscss.org ]"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ "inlineStyle": {
80
+ "description": "Specifies if the style will be in the ts file.",
81
+ "type": "boolean",
82
+ "default": false,
83
+ "alias": "s"
84
+ },
85
+ "inlineTemplate": {
86
+ "description": "Specifies if the template will be in the ts file.",
87
+ "type": "boolean",
88
+ "default": false,
89
+ "alias": "t"
90
+ },
91
+ "viewEncapsulation": {
92
+ "description": "Specifies the view encapsulation strategy.",
93
+ "enum": ["Emulated", "None", "ShadowDom"],
94
+ "type": "string"
95
+ },
96
+ "prefix": {
97
+ "type": "string",
98
+ "format": "html-selector",
99
+ "description": "The prefix to apply to generated selectors.",
100
+ "alias": "p"
101
+ },
102
+ "skipTests": {
103
+ "description": "Skip creating spec files.",
104
+ "type": "boolean",
105
+ "default": false,
106
+ "alias": "S"
107
+ },
108
+ "skipPackageJson": {
109
+ "type": "boolean",
110
+ "default": false,
111
+ "description": "Do not add dependencies to `package.json`.",
112
+ "x-priority": "internal"
113
+ },
114
+ "skipPostInstall": {
115
+ "type": "boolean",
116
+ "default": false,
117
+ "description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`.",
118
+ "x-priority": "internal"
119
+ },
120
+ "unitTestRunner": {
121
+ "type": "string",
122
+ "enum": ["vitest-analog", "jest", "none"],
123
+ "description": "Test runner to use for unit tests. `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-analog` for Angular versions >= 21.0.0, otherwise `jest`.",
124
+ "x-prompt": "Which unit test runner would you like to use?"
125
+ },
126
+ "e2eTestRunner": {
127
+ "type": "string",
128
+ "enum": ["playwright", "cypress", "none"],
129
+ "description": "Test runner to use for end to end (E2E) tests.",
130
+ "x-prompt": "Which E2E test runner would you like to use?",
131
+ "default": "playwright"
132
+ },
133
+ "tags": {
134
+ "type": "string",
135
+ "description": "Add tags to the application (used for linting)."
136
+ },
137
+ "linter": {
138
+ "description": "The tool to use for running lint checks.",
139
+ "type": "string",
140
+ "enum": ["eslint", "none"],
141
+ "default": "eslint"
142
+ },
143
+ "backendProject": {
144
+ "type": "string",
145
+ "description": "Backend project that provides data to this application. This sets up `proxy.config.json`."
146
+ },
147
+ "strict": {
148
+ "type": "boolean",
149
+ "description": "Create an application with stricter type checking and build optimization options.",
150
+ "default": true
151
+ },
152
+ "setParserOptionsProject": {
153
+ "type": "boolean",
154
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
155
+ "default": false
156
+ },
157
+ "addTailwind": {
158
+ "type": "boolean",
159
+ "description": "Whether to configure Tailwind CSS for the application.",
160
+ "default": false
161
+ },
162
+ "skipFormat": {
163
+ "description": "Skip formatting files.",
164
+ "type": "boolean",
165
+ "default": false,
166
+ "x-priority": "internal"
167
+ },
168
+ "standalone": {
169
+ "type": "boolean",
170
+ "description": "Whether to generate a Consumer (host) application that uses standalone components.",
171
+ "default": true
172
+ },
173
+ "ssr": {
174
+ "description": "Whether to configure SSR for the Consumer (host) application",
175
+ "type": "boolean",
176
+ "default": false,
177
+ "x-priority": "important"
178
+ },
179
+ "zoneless": {
180
+ "description": "Generate an application that does not use `zone.js`. It defaults to `true`. _Note: this is only supported in Angular versions >= 21.0.0_",
181
+ "type": "boolean"
182
+ },
183
+ "typescriptConfiguration": {
184
+ "type": "boolean",
185
+ "description": "Whether the module federation configuration and webpack configuration files should use TS.",
186
+ "default": true
187
+ }
188
+ },
189
+ "additionalProperties": false,
190
+ "required": ["directory"]
191
191
  }
@@ -1,34 +1,34 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "SchematicsAngularModuleInit",
4
- "cli": "nx",
5
- "title": "Init Angular Plugin",
6
- "description": "Initializes the `@nx/angular` plugin. NOTE: Does not work in the `--dry-run` mode.",
7
- "type": "object",
8
- "properties": {
9
- "skipInstall": {
10
- "type": "boolean",
11
- "description": "Skip installing after adding `@nx/workspace`.",
12
- "default": false,
13
- "x-priority": "internal"
14
- },
15
- "skipFormat": {
16
- "description": "Skip formatting files.",
17
- "type": "boolean",
18
- "default": false,
19
- "x-priority": "internal"
20
- },
21
- "skipPackageJson": {
22
- "type": "boolean",
23
- "default": false,
24
- "description": "Do not add dependencies to `package.json`.",
25
- "x-priority": "internal"
26
- },
27
- "keepExistingVersions": {
28
- "type": "boolean",
29
- "x-priority": "internal",
30
- "description": "Keep existing dependencies versions",
31
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "SchematicsAngularModuleInit",
4
+ "cli": "nx",
5
+ "title": "Init Angular Plugin",
6
+ "description": "Initializes the `@nx/angular` plugin. NOTE: Does not work in the `--dry-run` mode.",
7
+ "type": "object",
8
+ "properties": {
9
+ "skipInstall": {
10
+ "type": "boolean",
11
+ "description": "Skip installing after adding `@nx/workspace`.",
12
+ "default": false,
13
+ "x-priority": "internal"
14
+ },
15
+ "skipFormat": {
16
+ "description": "Skip formatting files.",
17
+ "type": "boolean",
18
+ "default": false,
19
+ "x-priority": "internal"
20
+ },
21
+ "skipPackageJson": {
22
+ "type": "boolean",
23
+ "default": false,
24
+ "description": "Do not add dependencies to `package.json`.",
25
+ "x-priority": "internal"
26
+ },
27
+ "keepExistingVersions": {
28
+ "type": "boolean",
29
+ "x-priority": "internal",
30
+ "description": "Keep existing dependencies versions",
31
+ "default": false
32
+ }
32
33
  }
33
- }
34
34
  }