@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.
- package/executors.json +62 -62
- package/generators.json +185 -185
- package/migrations.json +2412 -2412
- package/ng-package.json +19 -19
- package/package.json +10 -10
- package/project.json +2 -8
- package/src/builders/dev-server/schema.json +163 -163
- package/src/builders/webpack-browser/schema.json +567 -567
- package/src/builders/webpack-server/schema.json +303 -303
- package/src/executors/application/schema.json +732 -732
- package/src/executors/browser-esbuild/schema.json +548 -548
- package/src/executors/delegate-build/schema.json +31 -31
- package/src/executors/extract-i18n/schema.json +47 -47
- package/src/executors/module-federation-dev-server/schema.json +164 -164
- package/src/executors/module-federation-ssr-dev-server/schema.json +119 -119
- package/src/executors/ng-packagr-lite/schema.json +35 -35
- package/src/executors/package/schema.json +35 -35
- package/src/executors/unit-test/schema.json +305 -305
- package/src/generators/add-linting/schema.json +48 -48
- package/src/generators/application/schema.json +188 -188
- package/src/generators/component/schema.json +123 -123
- package/src/generators/component-story/schema.json +50 -50
- package/src/generators/component-test/schema.json +52 -52
- package/src/generators/convert-to-application-executor/schema.json +23 -23
- package/src/generators/convert-to-rspack/schema.json +27 -27
- package/src/generators/convert-to-with-mf/schema.json +30 -30
- package/src/generators/cypress-component-configuration/schema.json +43 -43
- package/src/generators/directive/schema.json +89 -89
- package/src/generators/federate-module/schema.json +80 -80
- package/src/generators/host/schema.json +189 -189
- package/src/generators/init/schema.json +31 -31
- package/src/generators/library/schema.json +189 -189
- package/src/generators/library-secondary-entry-point/schema.json +40 -40
- package/src/generators/move/schema.json +53 -53
- package/src/generators/ng-add/schema.json +62 -63
- package/src/generators/ngrx/schema.json +99 -99
- package/src/generators/ngrx-feature-store/schema.json +69 -69
- package/src/generators/ngrx-root-store/schema.json +68 -68
- package/src/generators/pipe/schema.json +75 -75
- package/src/generators/remote/schema.json +182 -182
- package/src/generators/scam/schema.json +120 -120
- package/src/generators/scam-directive/schema.json +82 -82
- package/src/generators/scam-pipe/schema.json +64 -64
- package/src/generators/scam-to-standalone/schema.json +29 -29
- package/src/generators/setup-mf/schema.json +90 -90
- package/src/generators/setup-ssr/schema.json +70 -70
- package/src/generators/setup-tailwind/schema.json +39 -39
- package/src/generators/stories/schema.json +53 -53
- package/src/generators/storybook-configuration/schema.json +80 -80
- package/src/generators/web-worker/schema.json +45 -45
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
"
|
|
22
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
}
|