@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,125 +1,125 @@
|
|
|
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
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "SchematicsAngularComponent",
|
|
4
|
+
"title": "Angular Component Schema",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Creates a new Angular component.",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"path": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The file path to the component. Relative to the current working directory.",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-prompt": "What is the component file path?"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The component symbol name. Defaults to the last segment of the file path."
|
|
22
|
+
},
|
|
23
|
+
"prefix": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The prefix to apply to the generated component selector.",
|
|
26
|
+
"alias": "p"
|
|
27
|
+
},
|
|
28
|
+
"displayBlock": {
|
|
29
|
+
"description": "Specifies if the style will contain `:host { display: block; }`.",
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"alias": "b"
|
|
33
|
+
},
|
|
34
|
+
"inlineStyle": {
|
|
35
|
+
"description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"alias": "s"
|
|
39
|
+
},
|
|
40
|
+
"inlineTemplate": {
|
|
41
|
+
"description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false,
|
|
44
|
+
"alias": "t"
|
|
45
|
+
},
|
|
46
|
+
"standalone": {
|
|
47
|
+
"description": "Whether the generated component is standalone.",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": true,
|
|
50
|
+
"x-priority": "important"
|
|
51
|
+
},
|
|
52
|
+
"viewEncapsulation": {
|
|
53
|
+
"description": "The view encapsulation strategy to use in the new component.",
|
|
54
|
+
"enum": ["Emulated", "None", "ShadowDom"],
|
|
55
|
+
"type": "string",
|
|
56
|
+
"alias": "v"
|
|
57
|
+
},
|
|
58
|
+
"changeDetection": {
|
|
59
|
+
"description": "The change detection strategy to use in the new component.",
|
|
60
|
+
"enum": ["Default", "OnPush"],
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "Default",
|
|
63
|
+
"alias": "c"
|
|
64
|
+
},
|
|
65
|
+
"module": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "The filename or path to the NgModule that will declare this component.",
|
|
68
|
+
"alias": "m"
|
|
69
|
+
},
|
|
70
|
+
"style": {
|
|
71
|
+
"description": "The file extension or preprocessor to use for style files, or `none` to skip generating the style file.",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "css",
|
|
74
|
+
"enum": ["css", "scss", "sass", "less", "none"]
|
|
75
|
+
},
|
|
76
|
+
"skipTests": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "Do not create `spec.ts` test files for the new component.",
|
|
79
|
+
"default": false
|
|
80
|
+
},
|
|
81
|
+
"skipImport": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"description": "Do not import this component into the owning NgModule.",
|
|
84
|
+
"default": false
|
|
85
|
+
},
|
|
86
|
+
"selector": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "html-selector",
|
|
89
|
+
"description": "The HTML selector to use for this component."
|
|
90
|
+
},
|
|
91
|
+
"skipSelector": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false,
|
|
94
|
+
"description": "Specifies if the component should have a selector or not."
|
|
95
|
+
},
|
|
96
|
+
"type": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Append a custom type to the component's filename. It defaults to 'component' for Angular versions below v20. For Angular v20 and above, no type is appended unless specified."
|
|
99
|
+
},
|
|
100
|
+
"export": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"description": "Specifies if the component should be exported in the declaring `NgModule`. Additionally, if the project is a library, the component will be exported from the project's entry point (normally `index.ts`) if the module it belongs to is also exported or if the component is standalone.",
|
|
103
|
+
"default": false,
|
|
104
|
+
"x-priority": "important"
|
|
105
|
+
},
|
|
106
|
+
"exportDefault": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": false,
|
|
109
|
+
"description": "Use default export for the component instead of a named export."
|
|
110
|
+
},
|
|
111
|
+
"ngHtml": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"default": false,
|
|
114
|
+
"description": "Generate component template files with an '.ng.html' file extension instead of '.html'."
|
|
115
|
+
},
|
|
116
|
+
"skipFormat": {
|
|
117
|
+
"description": "Skip formatting files.",
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": false,
|
|
120
|
+
"x-priority": "internal"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": ["path"],
|
|
124
|
+
"examplesFile": "../../../docs/component-examples.md"
|
|
125
125
|
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxAngularComponentStoryGenerator",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Creates a `stories.ts` file for an Angular component.",
|
|
7
|
+
"properties": {
|
|
8
|
+
"projectPath": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Path to the project.",
|
|
11
|
+
"examples": ["libs/ui-samples"],
|
|
12
|
+
"x-priority": "important"
|
|
13
|
+
},
|
|
14
|
+
"componentName": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Class name of the component.",
|
|
17
|
+
"examples": ["AwesomeComponent"],
|
|
18
|
+
"x-priority": "important"
|
|
19
|
+
},
|
|
20
|
+
"componentPath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Relative path to the component file from the project root.",
|
|
23
|
+
"examples": ["awesome"],
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"componentFileName": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Component file name without the `.ts` extension.",
|
|
29
|
+
"examples": ["awesome.component"],
|
|
30
|
+
"x-priority": "important"
|
|
31
|
+
},
|
|
32
|
+
"interactionTests": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Set up Storybook interaction tests.",
|
|
35
|
+
"x-prompt": "Do you want to set up Storybook interaction tests?",
|
|
36
|
+
"x-priority": "important",
|
|
37
|
+
"default": true
|
|
38
|
+
},
|
|
39
|
+
"skipFormat": {
|
|
40
|
+
"description": "Skip formatting files.",
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false,
|
|
43
|
+
"x-priority": "internal"
|
|
44
|
+
}
|
|
13
45
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Relative path to the component file from the project root.",
|
|
23
|
-
"examples": ["awesome"],
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"componentFileName": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "Component file name without the `.ts` extension.",
|
|
29
|
-
"examples": ["awesome.component"],
|
|
30
|
-
"x-priority": "important"
|
|
31
|
-
},
|
|
32
|
-
"interactionTests": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "Set up Storybook interaction tests.",
|
|
35
|
-
"x-prompt": "Do you want to set up Storybook interaction tests?",
|
|
36
|
-
"x-priority": "important",
|
|
37
|
-
"default": true
|
|
38
|
-
},
|
|
39
|
-
"skipFormat": {
|
|
40
|
-
"description": "Skip formatting files.",
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"default": false,
|
|
43
|
-
"x-priority": "internal"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"required": [
|
|
48
|
-
"projectPath",
|
|
49
|
-
"componentName",
|
|
50
|
-
"componentPath",
|
|
51
|
-
"componentFileName"
|
|
52
|
-
]
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": [
|
|
48
|
+
"projectPath",
|
|
49
|
+
"componentName",
|
|
50
|
+
"componentPath",
|
|
51
|
+
"componentFileName"
|
|
52
|
+
]
|
|
53
53
|
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxAngularComponentTestGenerator",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Create a `*.cy.ts` file for Cypress component testing for an Angular component.",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the project where the component is located.",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "projectName"
|
|
13
|
+
},
|
|
14
|
+
"x-dropdown": "projects",
|
|
15
|
+
"x-prompt": "What project is the component located in?",
|
|
16
|
+
"x-priority": "important"
|
|
17
|
+
},
|
|
18
|
+
"componentName": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Class name of the component to create a test for.",
|
|
21
|
+
"examples": ["MyFancyButtonComponent"],
|
|
22
|
+
"x-prompt": "What is the class name of the component to create a test for?",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"componentDir": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Relative path to the folder that contains the component from the project root.",
|
|
28
|
+
"examples": ["src/lib/my-fancy-button"],
|
|
29
|
+
"x-prompt": "What is the path to the component directory from the project root?",
|
|
30
|
+
"x-priority": "important"
|
|
31
|
+
},
|
|
32
|
+
"componentFileName": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "File name that contains the component without the `.ts` extension.",
|
|
35
|
+
"examples": ["my-fancy-button.component"],
|
|
36
|
+
"x-prompt": "What is the file name that contains the component?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"skipFormat": {
|
|
40
|
+
"description": "Skip formatting files.",
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false,
|
|
43
|
+
"x-priority": "internal"
|
|
44
|
+
},
|
|
45
|
+
"skipPackageJson": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false,
|
|
48
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
49
|
+
"x-priority": "internal"
|
|
50
|
+
}
|
|
17
51
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"examples": ["MyFancyButtonComponent"],
|
|
22
|
-
"x-prompt": "What is the class name of the component to create a test for?",
|
|
23
|
-
"x-priority": "important"
|
|
24
|
-
},
|
|
25
|
-
"componentDir": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Relative path to the folder that contains the component from the project root.",
|
|
28
|
-
"examples": ["src/lib/my-fancy-button"],
|
|
29
|
-
"x-prompt": "What is the path to the component directory from the project root?",
|
|
30
|
-
"x-priority": "important"
|
|
31
|
-
},
|
|
32
|
-
"componentFileName": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "File name that contains the component without the `.ts` extension.",
|
|
35
|
-
"examples": ["my-fancy-button.component"],
|
|
36
|
-
"x-prompt": "What is the file name that contains the component?",
|
|
37
|
-
"x-priority": "important"
|
|
38
|
-
},
|
|
39
|
-
"skipFormat": {
|
|
40
|
-
"description": "Skip formatting files.",
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"default": false,
|
|
43
|
-
"x-priority": "internal"
|
|
44
|
-
},
|
|
45
|
-
"skipPackageJson": {
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"default": false,
|
|
48
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
49
|
-
"x-priority": "internal"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"additionalProperties": false,
|
|
53
|
-
"required": ["project", "componentName", "componentDir", "componentFileName"],
|
|
54
|
-
"examplesFile": "../../../docs/component-test-examples.md"
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": ["project", "componentName", "componentDir", "componentFileName"],
|
|
54
|
+
"examplesFile": "../../../docs/component-test-examples.md"
|
|
55
55
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "NxAngularConvertToApplicationExecutorGenerator",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Converts projects to use the `@nx/angular:application` executor or the `@angular-devkit/build-angular:application` builder.",
|
|
6
|
+
"description": "Converts a project or all projects using one of the `@angular-devkit/build-angular:browser`, `@angular-devkit/build-angular:browser-esbuild`, `@nx/angular:browser` and `@nx/angular:browser-esbuild` executors to use the `@nx/angular:application` executor or the `@angular-devkit/build-angular:application` builder. If the converted target is using one of the `@nx/angular` executors, the `@nx/angular:application` executor will be used. Otherwise, the `@angular-devkit/build-angular:application` builder will be used.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Name of the Angular application project to convert. It has to contain a target using one of the `@angular-devkit/build-angular:browser`, `@angular-devkit/build-angular:browser-esbuild`, `@nx/angular:browser` and `@nx/angular:browser-esbuild` executors. If not specified, all projects with such targets will be converted.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-priority": "important"
|
|
17
|
+
},
|
|
18
|
+
"skipFormat": {
|
|
19
|
+
"description": "Skip formatting files.",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"x-priority": "internal"
|
|
23
|
+
}
|
|
17
24
|
},
|
|
18
|
-
"
|
|
19
|
-
"description": "Skip formatting files.",
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"default": false,
|
|
22
|
-
"x-priority": "internal"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
25
|
+
"additionalProperties": false
|
|
26
26
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
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
|
-
|
|
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
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"aliases": ["name", "projectName"],
|
|
12
|
+
"description": "Project for which to convert to rspack.",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-priority": "important"
|
|
18
|
+
},
|
|
19
|
+
"skipFormat": {
|
|
20
|
+
"description": "Skip formatting files.",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false
|
|
23
|
+
},
|
|
24
|
+
"skipInstall": {
|
|
25
|
+
"description": "Skip installing dependencies.",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
}
|
|
28
29
|
}
|
|
29
|
-
}
|
|
30
30
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "ConvertToWithMFGenerator",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Convert to withModuleFederation Generator Options Schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Converts an old micro frontend configuration to use the new withModuleFederation helper. It will run successfully if the following conditions are met: \n - Is either a host or remote application \n - Shared npm package configurations have not been modified \n - Name used to identify the Micro Frontend application matches the project name \n\n{% callout type=\"warning\" title=\"Overrides\" %}This generator will overwrite your webpack config. If you have additional custom configuration in your config file, it will be lost!{% /callout %}.",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"examples": [
|
|
10
|
+
{
|
|
11
|
+
"command": "nx g @nx/angular:convert-to-with-mf --project mf-app",
|
|
12
|
+
"description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper."
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"project": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The name of the micro frontend project to migrate.",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 0
|
|
22
|
+
},
|
|
23
|
+
"x-prompt": "What micro frontend project would you like to migrate?",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"skipFormat": {
|
|
27
|
+
"description": "Skip formatting files.",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"x-priority": "internal"
|
|
31
|
+
}
|
|
13
32
|
}
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"project": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "The name of the micro frontend project to migrate.",
|
|
19
|
-
"$default": {
|
|
20
|
-
"$source": "argv",
|
|
21
|
-
"index": 0
|
|
22
|
-
},
|
|
23
|
-
"x-prompt": "What micro frontend project would you like to migrate?",
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"skipFormat": {
|
|
27
|
-
"description": "Skip formatting files.",
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"default": false,
|
|
30
|
-
"x-priority": "internal"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
33
|
}
|