@nx/react 22.7.0-pr.33655.527519b → 22.7.0-pr.33655.d8f5d50
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/assets.json +23 -0
- package/executors.json +16 -16
- package/generators.json +106 -106
- package/migrations.json +194 -194
- package/package.json +19 -20
- package/plugins/component-testing/index.d.ts.map +1 -1
- package/plugins/component-testing/index.js +3 -0
- package/project.json +1 -50
- package/src/executors/module-federation-dev-server/schema.json +137 -137
- package/src/executors/module-federation-ssr-dev-server/schema.json +77 -77
- package/src/executors/module-federation-static-server/schema.json +13 -13
- package/src/generators/application/schema.json +211 -211
- package/src/generators/component/schema.json +111 -111
- package/src/generators/component-story/schema.json +39 -39
- package/src/generators/component-test/schema.json +28 -28
- package/src/generators/cypress-component-configuration/schema.json +51 -51
- package/src/generators/federate-module/schema.json +87 -87
- package/src/generators/hook/schema.json +54 -54
- package/src/generators/host/schema.json +185 -185
- package/src/generators/init/schema.json +30 -30
- package/src/generators/library/schema.json +193 -193
- package/src/generators/redux/schema.json +46 -46
- package/src/generators/remote/schema.json +184 -184
- package/src/generators/setup-ssr/schema.json +51 -51
- package/src/generators/setup-tailwind/schema.json +44 -44
- package/src/generators/stories/schema.json +56 -56
- package/src/generators/storybook-configuration/schema.json +77 -77
package/assets.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"outDir": "dist/packages/react",
|
|
3
|
+
"assets": [
|
|
4
|
+
{
|
|
5
|
+
"glob": "**/files/**"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"glob": "**/files/**/.gitkeep"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"glob": "**/*.json",
|
|
12
|
+
"ignore": ["tsconfig*.json", "project.json", ".eslintrc.json"]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"glob": "**/*.d.ts"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"glob": "**/*.js",
|
|
19
|
+
"ignore": ["**/jest.config.js"]
|
|
20
|
+
},
|
|
21
|
+
"LICENSE"
|
|
22
|
+
]
|
|
23
|
+
}
|
package/executors.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"executors": {
|
|
3
|
+
"module-federation-dev-server": {
|
|
4
|
+
"implementation": "./src/executors/module-federation-dev-server/module-federation-dev-server.impl",
|
|
5
|
+
"schema": "./src/executors/module-federation-dev-server/schema.json",
|
|
6
|
+
"description": "Serve a host or remote application."
|
|
7
|
+
},
|
|
8
|
+
"module-federation-ssr-dev-server": {
|
|
9
|
+
"implementation": "./src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl",
|
|
10
|
+
"schema": "./src/executors/module-federation-ssr-dev-server/schema.json",
|
|
11
|
+
"description": "Serve a host application along with it's known remotes."
|
|
12
|
+
},
|
|
13
|
+
"module-federation-static-server": {
|
|
14
|
+
"implementation": "./src/executors/module-federation-static-server/module-federation-static-server.impl",
|
|
15
|
+
"schema": "./src/executors/module-federation-static-server/schema.json",
|
|
16
|
+
"description": "Serve a host and its remotes statically."
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
19
|
}
|
package/generators.json
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
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
|
-
|
|
2
|
+
"name": "Nx React",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"extends": ["@nx/workspace"],
|
|
5
|
+
"generators": {
|
|
6
|
+
"init": {
|
|
7
|
+
"factory": "./src/generators/init/init#reactInitGenerator",
|
|
8
|
+
"schema": "./src/generators/init/schema.json",
|
|
9
|
+
"description": "Initialize the `@nx/react` plugin.",
|
|
10
|
+
"aliases": ["ng-add"],
|
|
11
|
+
"hidden": true
|
|
12
|
+
},
|
|
13
|
+
"application": {
|
|
14
|
+
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
15
|
+
"schema": "./src/generators/application/schema.json",
|
|
16
|
+
"aliases": ["app"],
|
|
17
|
+
"x-type": "application",
|
|
18
|
+
"description": "Create a React application."
|
|
19
|
+
},
|
|
20
|
+
"library": {
|
|
21
|
+
"factory": "./src/generators/library/library#libraryGeneratorInternal",
|
|
22
|
+
"schema": "./src/generators/library/schema.json",
|
|
23
|
+
"aliases": ["lib"],
|
|
24
|
+
"x-type": "library",
|
|
25
|
+
"description": "Create a React library."
|
|
26
|
+
},
|
|
27
|
+
"component": {
|
|
28
|
+
"factory": "./src/generators/component/component",
|
|
29
|
+
"schema": "./src/generators/component/schema.json",
|
|
30
|
+
"description": "Create a React component.",
|
|
31
|
+
"aliases": ["c"]
|
|
32
|
+
},
|
|
33
|
+
"redux": {
|
|
34
|
+
"factory": "./src/generators/redux/redux",
|
|
35
|
+
"schema": "./src/generators/redux/schema.json",
|
|
36
|
+
"description": "Create a Redux slice for a project.",
|
|
37
|
+
"aliases": ["slice"]
|
|
38
|
+
},
|
|
39
|
+
"storybook-configuration": {
|
|
40
|
+
"factory": "./src/generators/storybook-configuration/configuration#storybookConfigurationGeneratorInternal",
|
|
41
|
+
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
42
|
+
"description": "Set up storybook for a React app or library.",
|
|
43
|
+
"hidden": false
|
|
44
|
+
},
|
|
45
|
+
"component-story": {
|
|
46
|
+
"factory": "./src/generators/component-story/component-story#componentStoryGenerator",
|
|
47
|
+
"schema": "./src/generators/component-story/schema.json",
|
|
48
|
+
"description": "Generate storybook story for a React component",
|
|
49
|
+
"hidden": false
|
|
50
|
+
},
|
|
51
|
+
"stories": {
|
|
52
|
+
"factory": "./src/generators/stories/stories#storiesGenerator",
|
|
53
|
+
"schema": "./src/generators/stories/schema.json",
|
|
54
|
+
"description": "Create stories/specs for all components declared in an app or library.",
|
|
55
|
+
"hidden": false
|
|
56
|
+
},
|
|
57
|
+
"hook": {
|
|
58
|
+
"factory": "./src/generators/hook/hook",
|
|
59
|
+
"schema": "./src/generators/hook/schema.json",
|
|
60
|
+
"description": "Create a hook.",
|
|
61
|
+
"aliases": ["c"]
|
|
62
|
+
},
|
|
63
|
+
"host": {
|
|
64
|
+
"factory": "./src/generators/host/host",
|
|
65
|
+
"schema": "./src/generators/host/schema.json",
|
|
66
|
+
"x-type": "application",
|
|
67
|
+
"description": "Generate a host react application",
|
|
68
|
+
"aliases": ["consumer"]
|
|
69
|
+
},
|
|
70
|
+
"remote": {
|
|
71
|
+
"factory": "./src/generators/remote/remote",
|
|
72
|
+
"schema": "./src/generators/remote/schema.json",
|
|
73
|
+
"x-type": "application",
|
|
74
|
+
"description": "Generate a remote react application",
|
|
75
|
+
"aliases": ["producer"]
|
|
76
|
+
},
|
|
77
|
+
"cypress-component-configuration": {
|
|
78
|
+
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigGenerator",
|
|
79
|
+
"schema": "./src/generators/cypress-component-configuration/schema.json",
|
|
80
|
+
"description": "Setup Cypress component testing for a React project",
|
|
81
|
+
"hidden": false
|
|
82
|
+
},
|
|
83
|
+
"component-test": {
|
|
84
|
+
"factory": "./src/generators/component-test/component-test#componentTestGenerator",
|
|
85
|
+
"schema": "./src/generators/component-test/schema.json",
|
|
86
|
+
"description": "Generate a Cypress component test for a React component",
|
|
87
|
+
"hidden": false
|
|
88
|
+
},
|
|
89
|
+
"setup-tailwind": {
|
|
90
|
+
"factory": "./src/generators/setup-tailwind/setup-tailwind#setupTailwindGenerator",
|
|
91
|
+
"schema": "./src/generators/setup-tailwind/schema.json",
|
|
92
|
+
"description": "Set up Tailwind configuration for a project.",
|
|
93
|
+
"hidden": false,
|
|
94
|
+
"x-deprecated": "Generating Tailwind configuration is no longer maintained. This generator will be removed in Nx 23."
|
|
95
|
+
},
|
|
96
|
+
"setup-ssr": {
|
|
97
|
+
"factory": "./src/generators/setup-ssr/setup-ssr#setupSsrGenerator",
|
|
98
|
+
"schema": "./src/generators/setup-ssr/schema.json",
|
|
99
|
+
"description": "Set up SSR configuration for a project.",
|
|
100
|
+
"hidden": false
|
|
101
|
+
},
|
|
102
|
+
"federate-module": {
|
|
103
|
+
"factory": "./src/generators/federate-module/federate-module#federateModuleGenerator",
|
|
104
|
+
"schema": "./src/generators/federate-module/schema.json",
|
|
105
|
+
"description": "Federate a module.",
|
|
106
|
+
"hidden": false
|
|
107
|
+
}
|
|
107
108
|
}
|
|
108
|
-
}
|
|
109
109
|
}
|