@nx/react 19.2.0-beta.0 → 19.2.0-beta.2
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/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
|
|
26
26
|
|
|
27
|
-
This package is a [React plugin for Nx](https://nx.dev/
|
|
27
|
+
This package is a [React plugin for Nx](https://nx.dev/nx-api/react).
|
|
28
28
|
|
|
29
29
|
## Getting Started
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "19.2.0-beta.
|
|
3
|
+
"version": "19.2.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"file-loader": "^6.2.0",
|
|
39
39
|
"minimatch": "9.0.3",
|
|
40
40
|
"tslib": "^2.3.0",
|
|
41
|
-
"@nx/devkit": "19.2.0-beta.
|
|
42
|
-
"@nx/js": "19.2.0-beta.
|
|
43
|
-
"@nx/eslint": "19.2.0-beta.
|
|
44
|
-
"@nx/web": "19.2.0-beta.
|
|
45
|
-
"@nrwl/react": "19.2.0-beta.
|
|
41
|
+
"@nx/devkit": "19.2.0-beta.2",
|
|
42
|
+
"@nx/js": "19.2.0-beta.2",
|
|
43
|
+
"@nx/eslint": "19.2.0-beta.2",
|
|
44
|
+
"@nx/web": "19.2.0-beta.2",
|
|
45
|
+
"@nrwl/react": "19.2.0-beta.2"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -75,7 +75,7 @@ function addHotReload(config) {
|
|
|
75
75
|
];
|
|
76
76
|
}
|
|
77
77
|
const ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
78
|
-
config.plugins.push(new ReactRefreshPlugin());
|
|
78
|
+
config.plugins.push(new ReactRefreshPlugin({ overlay: false }));
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
// We remove potentially conflicting rules that target SVGs because we use @svgr/webpack loader
|
|
@@ -64,18 +64,21 @@ async function startRemotes(remotes, context, options, target = 'serve') {
|
|
|
64
64
|
const remoteProjectServeTarget = context.projectGraph.nodes[app].data.targets[target];
|
|
65
65
|
const isUsingModuleFederationDevServerExecutor = remoteProjectServeTarget.executor.includes('module-federation-dev-server');
|
|
66
66
|
const configurationOverride = options.devRemotes?.find((r) => typeof r !== 'string' && r.remoteName === app)?.configuration;
|
|
67
|
+
const defaultOverrides = {
|
|
68
|
+
...(options.host ? { host: options.host } : {}),
|
|
69
|
+
...(options.ssl ? { ssl: options.ssl } : {}),
|
|
70
|
+
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
|
71
|
+
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
|
72
|
+
};
|
|
67
73
|
const overrides = target === 'serve'
|
|
68
74
|
? {
|
|
69
75
|
watch: true,
|
|
70
|
-
...(options.host ? { host: options.host } : {}),
|
|
71
|
-
...(options.ssl ? { ssl: options.ssl } : {}),
|
|
72
|
-
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
|
73
|
-
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
|
74
76
|
...(isUsingModuleFederationDevServerExecutor
|
|
75
77
|
? { isInitialHost: false }
|
|
76
78
|
: {}),
|
|
79
|
+
...defaultOverrides,
|
|
77
80
|
}
|
|
78
|
-
: {};
|
|
81
|
+
: { ...defaultOverrides };
|
|
79
82
|
remoteIters.push(await (0, devkit_1.runExecutor)({
|
|
80
83
|
project: app,
|
|
81
84
|
target,
|
package/src/utils/ct-utils.js
CHANGED
|
@@ -26,7 +26,7 @@ async function configureCypressCT(tree, options) {
|
|
|
26
26
|
const buildTargetProject = (0, devkit_1.readProjectConfiguration)(tree, project);
|
|
27
27
|
const executor = buildTargetProject.targets?.[target]?.executor;
|
|
28
28
|
if (!executor || !options.validExecutorNames.has(executor)) {
|
|
29
|
-
throw new Error(`Cypress Component Testing is not currently supported for this project. Please check https://github.com/nrwl/nx/issues/21546 for more information.`);
|
|
29
|
+
throw new Error(`Cypress Component Testing is not currently supported for this project. Either 'executer' is not defined in '${target} target' of '${project} project.json' or executer present is not valid one. Valid ones are ${JSON.stringify([...options.validExecutorNames])}. Please check https://github.com/nrwl/nx/issues/21546 for more information.`);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
const { addDefaultCTConfig, getProjectCypressConfigPath } = await Promise.resolve().then(() => require('@nx/cypress/src/utils/config'));
|