@nx/react 19.7.0-canary.20240817-b91d788 → 19.7.0-canary.20240820-0853690
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 +1 -1
- package/package.json +6 -6
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +4 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +4 -1
- package/src/generators/application/schema.d.ts +2 -2
- package/src/generators/federate-module/schema.d.ts +3 -1
- package/src/generators/host/schema.d.ts +2 -2
- package/src/generators/library/schema.d.ts +2 -2
- package/src/generators/remote/schema.d.ts +2 -2
- package/src/generators/storybook-configuration/schema.d.ts +2 -2
package/README.md
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
# Nx: Smart Monorepos · Fast CI
|
24
24
|
|
25
|
-
Nx is a build system
|
25
|
+
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
|
26
26
|
|
27
27
|
This package is a [React plugin for Nx](https://nx.dev/nx-api/react).
|
28
28
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/react",
|
3
|
-
"version": "19.7.0-canary.
|
3
|
+
"version": "19.7.0-canary.20240820-0853690",
|
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": {
|
@@ -39,11 +39,11 @@
|
|
39
39
|
"minimatch": "9.0.3",
|
40
40
|
"tslib": "^2.3.0",
|
41
41
|
"@module-federation/enhanced": "~0.2.3",
|
42
|
-
"@nx/devkit": "19.7.0-canary.
|
43
|
-
"@nx/js": "19.7.0-canary.
|
44
|
-
"@nx/eslint": "19.7.0-canary.
|
45
|
-
"@nx/web": "19.7.0-canary.
|
46
|
-
"@nrwl/react": "19.7.0-canary.
|
42
|
+
"@nx/devkit": "19.7.0-canary.20240820-0853690",
|
43
|
+
"@nx/js": "19.7.0-canary.20240820-0853690",
|
44
|
+
"@nx/eslint": "19.7.0-canary.20240820-0853690",
|
45
|
+
"@nx/web": "19.7.0-canary.20240820-0853690",
|
46
|
+
"@nrwl/react": "19.7.0-canary.20240820-0853690"
|
47
47
|
},
|
48
48
|
"publishConfig": {
|
49
49
|
"access": "public"
|
@@ -187,7 +187,10 @@ async function* moduleFederationDevServer(options, context) {
|
|
187
187
|
}, pathToManifestFile);
|
188
188
|
options.staticRemotesPort ??= remotes.staticRemotePort;
|
189
189
|
// Set NX_MF_DEV_REMOTES for the Nx Runtime Library Control Plugin
|
190
|
-
process.env.NX_MF_DEV_REMOTES = JSON.stringify(
|
190
|
+
process.env.NX_MF_DEV_REMOTES = JSON.stringify([
|
191
|
+
...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []),
|
192
|
+
p.name,
|
193
|
+
]);
|
191
194
|
const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
|
192
195
|
const mappedLocationsOfStaticRemotes = await buildStaticRemotes(staticRemotesConfig, nxBin, context, options);
|
193
196
|
const devRemoteIters = await startRemotes(remotes.devRemotes, context, options, 'serve');
|
package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js
CHANGED
@@ -162,7 +162,10 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
162
162
|
root: context.root,
|
163
163
|
}, pathToManifestFile);
|
164
164
|
options.staticRemotesPort ??= remotes.staticRemotePort;
|
165
|
-
process.env.NX_MF_DEV_REMOTES = JSON.stringify(
|
165
|
+
process.env.NX_MF_DEV_REMOTES = JSON.stringify([
|
166
|
+
...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []),
|
167
|
+
projectConfig.name,
|
168
|
+
]);
|
166
169
|
const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticSsrRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
|
167
170
|
const mappedLocationsOfStaticRemotes = await buildSsrStaticRemotes(staticRemotesConfig, nxBin, context, options);
|
168
171
|
const devRemoteIters = await startRemotes(remotes.devRemotes, context, options);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
2
|
-
import type { Linter } from '@nx/eslint';
|
2
|
+
import type { Linter, LinterType } from '@nx/eslint';
|
3
3
|
import type { SupportedStyles } from '../../../typings/style';
|
4
4
|
|
5
5
|
export interface Schema {
|
@@ -12,7 +12,7 @@ export interface Schema {
|
|
12
12
|
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
13
13
|
inSourceTests?: boolean;
|
14
14
|
e2eTestRunner: 'cypress' | 'playwright' | 'none';
|
15
|
-
linter: Linter;
|
15
|
+
linter: Linter | LinterType;
|
16
16
|
pascalCaseFiles?: boolean;
|
17
17
|
classComponent?: boolean;
|
18
18
|
routing?: boolean;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { Linter, LinterType } from '@nx/eslint';
|
2
|
+
|
1
3
|
export interface Schema {
|
2
4
|
name: string;
|
3
5
|
path: string;
|
@@ -6,7 +8,7 @@ export interface Schema {
|
|
6
8
|
projectNameAndRootFormat?: ProjectNameAndRootFormat;
|
7
9
|
e2eTestRunner?: 'cypress' | 'playwright' | 'none';
|
8
10
|
host?: string;
|
9
|
-
linter?: Linter;
|
11
|
+
linter?: Linter | LinterType;
|
10
12
|
skipFormat?: boolean;
|
11
13
|
style?: SupportedStyles;
|
12
14
|
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
2
|
-
import type { Linter } from '@nx/eslint';
|
2
|
+
import type { Linter, LinterType } from '@nx/eslint';
|
3
3
|
import type { SupportedStyles } from '../../../typings/style';
|
4
4
|
|
5
5
|
export interface Schema {
|
@@ -11,7 +11,7 @@ export interface Schema {
|
|
11
11
|
e2eTestRunner: 'cypress' | 'playwright' | 'none';
|
12
12
|
globalCss?: boolean;
|
13
13
|
js?: boolean;
|
14
|
-
linter: Linter;
|
14
|
+
linter: Linter | LinterType;
|
15
15
|
name: string;
|
16
16
|
pascalCaseFiles?: boolean;
|
17
17
|
remotes?: string[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
2
|
-
import type { Linter } from '@nx/eslint';
|
2
|
+
import type { Linter, LinterType } from '@nx/eslint';
|
3
3
|
import type { SupportedStyles } from '../../../typings/style';
|
4
4
|
|
5
5
|
export interface Schema {
|
@@ -14,7 +14,7 @@ export interface Schema {
|
|
14
14
|
importPath?: string;
|
15
15
|
inSourceTests?: boolean;
|
16
16
|
js?: boolean;
|
17
|
-
linter: Linter;
|
17
|
+
linter: Linter | LinterType;
|
18
18
|
name: string;
|
19
19
|
pascalCaseFiles?: boolean;
|
20
20
|
publishable?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
2
|
-
import type { Linter } from '@nx/eslint';
|
2
|
+
import type { Linter, LinterType } from '@nx/eslint';
|
3
3
|
import type { SupportedStyles } from '../../../typings/style';
|
4
4
|
import type { NormalizedSchema as ApplicationNormalizedSchema } from '../application/schema';
|
5
5
|
|
@@ -13,7 +13,7 @@ export interface Schema {
|
|
13
13
|
globalCss?: boolean;
|
14
14
|
host?: string;
|
15
15
|
js?: boolean;
|
16
|
-
linter: Linter;
|
16
|
+
linter: Linter | LinterType;
|
17
17
|
name: string;
|
18
18
|
pascalCaseFiles?: boolean;
|
19
19
|
routing?: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Linter } from '@nx/eslint';
|
1
|
+
import { Linter, LinterType } from '@nx/eslint';
|
2
2
|
|
3
3
|
export interface StorybookConfigureSchema {
|
4
4
|
project: string;
|
@@ -6,7 +6,7 @@ export interface StorybookConfigureSchema {
|
|
6
6
|
generateStories?: boolean;
|
7
7
|
js?: boolean;
|
8
8
|
tsConfiguration?: boolean;
|
9
|
-
linter?: Linter;
|
9
|
+
linter?: Linter | LinterType;
|
10
10
|
ignorePaths?: string[];
|
11
11
|
configureStaticServe?: boolean;
|
12
12
|
configureCypress?: boolean;
|