@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
@@ -1,51 +1,51 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxAngularAddLintingGenerator",
4
- "title": "Add linting to an Angular project.",
5
- "description": "Adds linting configuration to an Angular project.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g @nx/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib",
11
- "description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.dev/style-guide#style-02-07) `cool`"
12
- }
13
- ],
14
- "properties": {
15
- "prefix": {
16
- "type": "string",
17
- "format": "html-selector",
18
- "description": "The prefix to apply to generated selectors.",
19
- "x-priority": "important"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularAddLintingGenerator",
4
+ "title": "Add linting to an Angular project.",
5
+ "description": "Adds linting configuration to an Angular project.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g @nx/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib",
11
+ "description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.dev/style-guide#style-02-07) `cool`"
12
+ }
13
+ ],
14
+ "properties": {
15
+ "prefix": {
16
+ "type": "string",
17
+ "format": "html-selector",
18
+ "description": "The prefix to apply to generated selectors.",
19
+ "x-priority": "important"
20
+ },
21
+ "projectName": {
22
+ "type": "string",
23
+ "description": "The name of the project.",
24
+ "x-priority": "important"
25
+ },
26
+ "projectRoot": {
27
+ "type": "string",
28
+ "description": "The path to the root of the selected project.",
29
+ "x-priority": "important"
30
+ },
31
+ "setParserOptionsProject": {
32
+ "type": "boolean",
33
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
34
+ "default": false
35
+ },
36
+ "skipFormat": {
37
+ "type": "boolean",
38
+ "description": "Skip formatting files.",
39
+ "default": false,
40
+ "x-priority": "internal"
41
+ },
42
+ "skipPackageJson": {
43
+ "type": "boolean",
44
+ "default": false,
45
+ "description": "Do not add dependencies to `package.json`.",
46
+ "x-priority": "internal"
47
+ }
20
48
  },
21
- "projectName": {
22
- "type": "string",
23
- "description": "The name of the project.",
24
- "x-priority": "important"
25
- },
26
- "projectRoot": {
27
- "type": "string",
28
- "description": "The path to the root of the selected project.",
29
- "x-priority": "important"
30
- },
31
- "setParserOptionsProject": {
32
- "type": "boolean",
33
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
34
- "default": false
35
- },
36
- "skipFormat": {
37
- "type": "boolean",
38
- "description": "Skip formatting files.",
39
- "default": false,
40
- "x-priority": "internal"
41
- },
42
- "skipPackageJson": {
43
- "type": "boolean",
44
- "default": false,
45
- "description": "Do not add dependencies to `package.json`.",
46
- "x-priority": "internal"
47
- }
48
- },
49
- "additionalProperties": false,
50
- "required": ["prefix", "projectName", "projectRoot"]
49
+ "additionalProperties": false,
50
+ "required": ["prefix", "projectName", "projectRoot"]
51
51
  }
@@ -1,190 +1,190 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorNxApp",
4
- "title": "Creates an Angular application.",
5
- "description": "Creates an Angular application.",
6
- "type": "object",
7
- "cli": "nx",
8
- "properties": {
9
- "directory": {
10
- "description": "The directory of the new application.",
11
- "type": "string",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "Which directory do you want to create the application in?"
17
- },
18
- "name": {
19
- "description": "The name of the application.",
20
- "type": "string",
21
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
22
- "x-priority": "important"
23
- },
24
- "style": {
25
- "description": "The file extension to be used for style files.",
26
- "type": "string",
27
- "default": "css",
28
- "enum": ["css", "scss", "sass", "less"],
29
- "x-prompt": {
30
- "message": "Which stylesheet format would you like to use?",
31
- "type": "list",
32
- "items": [
33
- {
34
- "value": "css",
35
- "label": "CSS"
36
- },
37
- {
38
- "value": "scss",
39
- "label": "SASS(.scss) [ https://sass-lang.com ]"
40
- },
41
- {
42
- "value": "sass",
43
- "label": "SASS(.sass) [ https://sass-lang.com ]"
44
- },
45
- {
46
- "value": "less",
47
- "label": "LESS [ https://lesscss.org ]"
48
- }
49
- ]
50
- }
51
- },
52
- "routing": {
53
- "type": "boolean",
54
- "description": "Enable routing for the application.",
55
- "default": true,
56
- "x-priority": "important"
57
- },
58
- "inlineStyle": {
59
- "description": "Specifies if the style will be in the ts file.",
60
- "type": "boolean",
61
- "default": false,
62
- "alias": "s"
63
- },
64
- "inlineTemplate": {
65
- "description": "Specifies if the template will be in the ts file.",
66
- "type": "boolean",
67
- "default": false,
68
- "alias": "t"
69
- },
70
- "viewEncapsulation": {
71
- "description": "Specifies the view encapsulation strategy.",
72
- "enum": ["Emulated", "None", "ShadowDom"],
73
- "type": "string"
74
- },
75
- "prefix": {
76
- "type": "string",
77
- "format": "html-selector",
78
- "description": "The prefix to apply to generated selectors.",
79
- "default": "app",
80
- "alias": "p"
81
- },
82
- "skipTests": {
83
- "description": "Skip creating spec files.",
84
- "type": "boolean",
85
- "default": false,
86
- "alias": "S"
87
- },
88
- "skipFormat": {
89
- "description": "Skip formatting files.",
90
- "type": "boolean",
91
- "default": false,
92
- "x-priority": "internal"
93
- },
94
- "skipPackageJson": {
95
- "type": "boolean",
96
- "default": false,
97
- "description": "Do not add dependencies to `package.json`.",
98
- "x-priority": "internal"
99
- },
100
- "unitTestRunner": {
101
- "type": "string",
102
- "enum": ["vitest-angular", "vitest-analog", "jest", "none"],
103
- "description": "Test runner to use for unit tests. `vitest-angular` uses the `@angular/build:unit-test` executor (requires Angular v21+ and the `esbuild` bundler). `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-angular` when using the `esbuild` bundler for Angular versions >= 21.0.0, `vitest-analog` when using other bundlers on Angular >= 21.0.0, otherwise `jest`.",
104
- "x-prompt": "Which unit test runner would you like to use?"
105
- },
106
- "e2eTestRunner": {
107
- "type": "string",
108
- "enum": ["playwright", "cypress", "none"],
109
- "description": "Test runner to use for end to end (E2E) tests.",
110
- "x-prompt": "Which E2E test runner would you like to use?",
111
- "default": "playwright"
112
- },
113
- "tags": {
114
- "type": "string",
115
- "description": "Add tags to the application (used for linting)."
116
- },
117
- "linter": {
118
- "description": "The tool to use for running lint checks.",
119
- "type": "string",
120
- "enum": ["eslint", "none"],
121
- "default": "eslint"
122
- },
123
- "backendProject": {
124
- "type": "string",
125
- "description": "Backend project that provides data to this application. This sets up `proxy.config.json`."
126
- },
127
- "strict": {
128
- "type": "boolean",
129
- "description": "Create an application with stricter type checking and build optimization options.",
130
- "default": true
131
- },
132
- "port": {
133
- "type": "number",
134
- "description": "The port at which the remote application should be served."
135
- },
136
- "setParserOptionsProject": {
137
- "type": "boolean",
138
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
139
- "default": false
140
- },
141
- "addTailwind": {
142
- "type": "boolean",
143
- "description": "Whether to configure Tailwind CSS for the application.",
144
- "default": false
145
- },
146
- "standalone": {
147
- "description": "Generate an application that is setup to use standalone components.",
148
- "type": "boolean",
149
- "default": true,
150
- "x-priority": "important"
151
- },
152
- "rootProject": {
153
- "description": "Create an application at the root of the workspace.",
154
- "type": "boolean",
155
- "default": false,
156
- "hidden": true,
157
- "x-priority": "internal"
158
- },
159
- "minimal": {
160
- "description": "Generate a Angular app with a minimal setup.",
161
- "type": "boolean",
162
- "default": false
163
- },
164
- "bundler": {
165
- "description": "Bundler to use to build the application.",
166
- "type": "string",
167
- "enum": ["esbuild", "rspack", "webpack"],
168
- "default": "esbuild",
169
- "x-prompt": "Which bundler do you want to use to build the application?",
170
- "x-priority": "important"
171
- },
172
- "ssr": {
173
- "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
174
- "type": "boolean",
175
- "x-prompt": "Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)?",
176
- "default": false
177
- },
178
- "serverRouting": {
179
- "description": "Creates a server application using the Server Routing and App Engine APIs for application using the `application` builder (Developer Preview). _Note: this is only supported in Angular versions 19.x.x_. From Angular 20 onwards, SSR will always enable server routing when using the `application` builder.",
180
- "type": "boolean"
181
- },
182
- "zoneless": {
183
- "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_",
184
- "type": "boolean"
185
- }
186
- },
187
- "additionalProperties": false,
188
- "required": ["directory"],
189
- "examplesFile": "../../../docs/application-examples.md"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorNxApp",
4
+ "title": "Creates an Angular application.",
5
+ "description": "Creates an Angular application.",
6
+ "type": "object",
7
+ "cli": "nx",
8
+ "properties": {
9
+ "directory": {
10
+ "description": "The directory of the new application.",
11
+ "type": "string",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "Which directory do you want to create the application in?"
17
+ },
18
+ "name": {
19
+ "description": "The name of the application.",
20
+ "type": "string",
21
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
22
+ "x-priority": "important"
23
+ },
24
+ "style": {
25
+ "description": "The file extension to be used for style files.",
26
+ "type": "string",
27
+ "default": "css",
28
+ "enum": ["css", "scss", "sass", "less"],
29
+ "x-prompt": {
30
+ "message": "Which stylesheet format would you like to use?",
31
+ "type": "list",
32
+ "items": [
33
+ {
34
+ "value": "css",
35
+ "label": "CSS"
36
+ },
37
+ {
38
+ "value": "scss",
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
40
+ },
41
+ {
42
+ "value": "sass",
43
+ "label": "SASS(.sass) [ https://sass-lang.com ]"
44
+ },
45
+ {
46
+ "value": "less",
47
+ "label": "LESS [ https://lesscss.org ]"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ "routing": {
53
+ "type": "boolean",
54
+ "description": "Enable routing for the application.",
55
+ "default": true,
56
+ "x-priority": "important"
57
+ },
58
+ "inlineStyle": {
59
+ "description": "Specifies if the style will be in the ts file.",
60
+ "type": "boolean",
61
+ "default": false,
62
+ "alias": "s"
63
+ },
64
+ "inlineTemplate": {
65
+ "description": "Specifies if the template will be in the ts file.",
66
+ "type": "boolean",
67
+ "default": false,
68
+ "alias": "t"
69
+ },
70
+ "viewEncapsulation": {
71
+ "description": "Specifies the view encapsulation strategy.",
72
+ "enum": ["Emulated", "None", "ShadowDom"],
73
+ "type": "string"
74
+ },
75
+ "prefix": {
76
+ "type": "string",
77
+ "format": "html-selector",
78
+ "description": "The prefix to apply to generated selectors.",
79
+ "default": "app",
80
+ "alias": "p"
81
+ },
82
+ "skipTests": {
83
+ "description": "Skip creating spec files.",
84
+ "type": "boolean",
85
+ "default": false,
86
+ "alias": "S"
87
+ },
88
+ "skipFormat": {
89
+ "description": "Skip formatting files.",
90
+ "type": "boolean",
91
+ "default": false,
92
+ "x-priority": "internal"
93
+ },
94
+ "skipPackageJson": {
95
+ "type": "boolean",
96
+ "default": false,
97
+ "description": "Do not add dependencies to `package.json`.",
98
+ "x-priority": "internal"
99
+ },
100
+ "unitTestRunner": {
101
+ "type": "string",
102
+ "enum": ["vitest-angular", "vitest-analog", "jest", "none"],
103
+ "description": "Test runner to use for unit tests. `vitest-angular` uses the `@angular/build:unit-test` executor (requires Angular v21+ and the `esbuild` bundler). `vitest-analog` uses AnalogJS-based setup with `@nx/vitest`. It defaults to `vitest-angular` when using the `esbuild` bundler for Angular versions >= 21.0.0, `vitest-analog` when using other bundlers on Angular >= 21.0.0, otherwise `jest`.",
104
+ "x-prompt": "Which unit test runner would you like to use?"
105
+ },
106
+ "e2eTestRunner": {
107
+ "type": "string",
108
+ "enum": ["playwright", "cypress", "none"],
109
+ "description": "Test runner to use for end to end (E2E) tests.",
110
+ "x-prompt": "Which E2E test runner would you like to use?",
111
+ "default": "playwright"
112
+ },
113
+ "tags": {
114
+ "type": "string",
115
+ "description": "Add tags to the application (used for linting)."
116
+ },
117
+ "linter": {
118
+ "description": "The tool to use for running lint checks.",
119
+ "type": "string",
120
+ "enum": ["eslint", "none"],
121
+ "default": "eslint"
122
+ },
123
+ "backendProject": {
124
+ "type": "string",
125
+ "description": "Backend project that provides data to this application. This sets up `proxy.config.json`."
126
+ },
127
+ "strict": {
128
+ "type": "boolean",
129
+ "description": "Create an application with stricter type checking and build optimization options.",
130
+ "default": true
131
+ },
132
+ "port": {
133
+ "type": "number",
134
+ "description": "The port at which the remote application should be served."
135
+ },
136
+ "setParserOptionsProject": {
137
+ "type": "boolean",
138
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
139
+ "default": false
140
+ },
141
+ "addTailwind": {
142
+ "type": "boolean",
143
+ "description": "Whether to configure Tailwind CSS for the application.",
144
+ "default": false
145
+ },
146
+ "standalone": {
147
+ "description": "Generate an application that is setup to use standalone components.",
148
+ "type": "boolean",
149
+ "default": true,
150
+ "x-priority": "important"
151
+ },
152
+ "rootProject": {
153
+ "description": "Create an application at the root of the workspace.",
154
+ "type": "boolean",
155
+ "default": false,
156
+ "hidden": true,
157
+ "x-priority": "internal"
158
+ },
159
+ "minimal": {
160
+ "description": "Generate a Angular app with a minimal setup.",
161
+ "type": "boolean",
162
+ "default": false
163
+ },
164
+ "bundler": {
165
+ "description": "Bundler to use to build the application.",
166
+ "type": "string",
167
+ "enum": ["esbuild", "rspack", "webpack"],
168
+ "default": "esbuild",
169
+ "x-prompt": "Which bundler do you want to use to build the application?",
170
+ "x-priority": "important"
171
+ },
172
+ "ssr": {
173
+ "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
174
+ "type": "boolean",
175
+ "x-prompt": "Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)?",
176
+ "default": false
177
+ },
178
+ "serverRouting": {
179
+ "description": "Creates a server application using the Server Routing and App Engine APIs for application using the `application` builder (Developer Preview). _Note: this is only supported in Angular versions 19.x.x_. From Angular 20 onwards, SSR will always enable server routing when using the `application` builder.",
180
+ "type": "boolean"
181
+ },
182
+ "zoneless": {
183
+ "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_",
184
+ "type": "boolean"
185
+ }
186
+ },
187
+ "additionalProperties": false,
188
+ "required": ["directory"],
189
+ "examplesFile": "../../../docs/application-examples.md"
190
190
  }