@nrwl/react 13.10.0-rc.0 → 13.10.0-rc.1
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 +16 -0
- package/generators.json +14 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/module-federation.d.ts +4 -0
- package/module-federation.js +10 -0
- package/module-federation.js.map +1 -0
- package/package.json +10 -9
- package/plugins/webpack.d.ts +2 -1
- package/plugins/webpack.js +2 -0
- package/plugins/webpack.js.map +1 -1
- package/src/executors/mfe-dev-server/compat.d.ts +2 -0
- package/src/executors/mfe-dev-server/compat.js +6 -0
- package/src/executors/mfe-dev-server/compat.js.map +1 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.d.ts +11 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.js +86 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.js.map +1 -0
- package/src/executors/mfe-dev-server/schema.json +82 -0
- package/src/generators/application/files/common/src/app/__fileName__.spec.tsx__tmpl__ +1 -1
- package/src/generators/application/lib/normalize-options.js +2 -2
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +2 -0
- package/src/generators/mfe-host/files/common/src/app/__fileName__.tsx__tmpl__ +29 -0
- package/src/generators/mfe-host/files/mfe/mfe.config.js__tmpl__ +6 -0
- package/src/generators/mfe-host/files/mfe/src/main.ts__tmpl__ +1 -0
- package/src/generators/mfe-host/files/mfe/src/remotes.d.ts__tmpl__ +4 -0
- package/src/generators/mfe-host/files/mfe/webpack.config.js__tmpl__ +6 -0
- package/src/generators/mfe-host/files/mfe/webpack.config.prod.js__tmpl__ +1 -0
- package/src/generators/mfe-host/lib/add-mfe.d.ts +2 -0
- package/src/generators/mfe-host/lib/add-mfe.js +17 -0
- package/src/generators/mfe-host/lib/add-mfe.js.map +1 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.js +10 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.js.map +1 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.js +17 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.js.map +1 -0
- package/src/generators/mfe-host/lib/update-mfe-project.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-mfe-project.js +13 -0
- package/src/generators/mfe-host/lib/update-mfe-project.js.map +1 -0
- package/src/generators/mfe-host/mfe-host.d.ts +3 -0
- package/src/generators/mfe-host/mfe-host.js +43 -0
- package/src/generators/mfe-host/mfe-host.js.map +1 -0
- package/src/generators/mfe-host/schema.d.ts +28 -0
- package/src/generators/mfe-host/schema.json +155 -0
- package/src/generators/mfe-remote/files/mfe/mfe.config.js__tmpl__ +6 -0
- package/src/generators/mfe-remote/files/mfe/src/main.ts__tmpl__ +1 -0
- package/src/generators/mfe-remote/files/mfe/src/remote-entry.ts__tmpl__ +1 -0
- package/src/generators/mfe-remote/files/mfe/webpack.config.js__tmpl__ +6 -0
- package/src/generators/mfe-remote/files/mfe/webpack.config.prod.js__tmpl__ +1 -0
- package/src/generators/mfe-remote/mfe-remote.d.ts +5 -0
- package/src/generators/mfe-remote/mfe-remote.js +41 -0
- package/src/generators/mfe-remote/mfe-remote.js.map +1 -0
- package/src/generators/mfe-remote/schema.d.ts +30 -0
- package/src/generators/mfe-remote/schema.json +159 -0
- package/src/mfe/webpack-utils.d.ts +17 -0
- package/src/mfe/webpack-utils.js +66 -0
- package/src/mfe/webpack-utils.js.map +1 -0
- package/src/mfe/with-module-federation.d.ts +14 -0
- package/src/mfe/with-module-federation.js +167 -0
- package/src/mfe/with-module-federation.js.map +1 -0
- package/src/utils/versions.js +1 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withModuleFederation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const webpack_utils_1 = require("./webpack-utils");
|
|
6
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
+
const typescript_1 = require("@nrwl/workspace/src/utilities/typescript");
|
|
8
|
+
const file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
9
|
+
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
|
|
10
|
+
function recursivelyResolveWorkspaceDependents(projectGraph, target, seenTargets = new Set()) {
|
|
11
|
+
var _a;
|
|
12
|
+
if (seenTargets.has(target)) {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
let dependencies = [target];
|
|
16
|
+
seenTargets.add(target);
|
|
17
|
+
const workspaceDependencies = ((_a = projectGraph.dependencies[target]) !== null && _a !== void 0 ? _a : []).filter((dep) => !dep.target.startsWith('npm:'));
|
|
18
|
+
if (workspaceDependencies.length > 0) {
|
|
19
|
+
for (const dep of workspaceDependencies) {
|
|
20
|
+
dependencies = [
|
|
21
|
+
...dependencies,
|
|
22
|
+
...recursivelyResolveWorkspaceDependents(projectGraph, dep.target, seenTargets),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return dependencies;
|
|
27
|
+
}
|
|
28
|
+
function mapWorkspaceLibrariesToTsConfigImport(workspaceLibraries) {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const { projects } = new devkit_1.Workspaces(devkit_1.workspaceRoot).readWorkspaceConfiguration();
|
|
31
|
+
const tsConfigPath = (_a = process.env.NX_TSCONFIG_PATH) !== null && _a !== void 0 ? _a : (0, typescript_1.getRootTsConfigPath)();
|
|
32
|
+
const tsConfig = (0, typescript_1.readTsConfig)(tsConfigPath);
|
|
33
|
+
const tsconfigPathAliases = (_b = tsConfig.options) === null || _b === void 0 ? void 0 : _b.paths;
|
|
34
|
+
if (!tsconfigPathAliases) {
|
|
35
|
+
return workspaceLibraries;
|
|
36
|
+
}
|
|
37
|
+
const mappedLibraries = [];
|
|
38
|
+
for (const lib of workspaceLibraries) {
|
|
39
|
+
const sourceRoot = projects[lib].sourceRoot;
|
|
40
|
+
let found = false;
|
|
41
|
+
for (const [key, value] of Object.entries(tsconfigPathAliases)) {
|
|
42
|
+
if (value.find((p) => p.startsWith(sourceRoot))) {
|
|
43
|
+
mappedLibraries.push(key);
|
|
44
|
+
found = true;
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (!found) {
|
|
49
|
+
mappedLibraries.push(lib);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return mappedLibraries;
|
|
53
|
+
}
|
|
54
|
+
function getDependentPackagesForProject(name) {
|
|
55
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
let projectGraph;
|
|
57
|
+
try {
|
|
58
|
+
projectGraph = (0, devkit_1.readCachedProjectGraph)();
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
projectGraph = yield (0, devkit_1.createProjectGraphAsync)();
|
|
62
|
+
}
|
|
63
|
+
const deps = projectGraph.dependencies[name].reduce((dependencies, dependency) => {
|
|
64
|
+
const workspaceLibraries = new Set(dependencies.workspaceLibraries);
|
|
65
|
+
const npmPackages = new Set(dependencies.npmPackages);
|
|
66
|
+
if (dependency.target.startsWith('npm:')) {
|
|
67
|
+
npmPackages.add(dependency.target.replace('npm:', ''));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
workspaceLibraries.add(dependency.target);
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
workspaceLibraries: [...workspaceLibraries],
|
|
74
|
+
npmPackages: [...npmPackages],
|
|
75
|
+
};
|
|
76
|
+
}, { workspaceLibraries: [], npmPackages: [] });
|
|
77
|
+
const seenWorkspaceLibraries = new Set();
|
|
78
|
+
deps.workspaceLibraries = deps.workspaceLibraries.reduce((workspaceLibraryDeps, workspaceLibrary) => [
|
|
79
|
+
...workspaceLibraryDeps,
|
|
80
|
+
...recursivelyResolveWorkspaceDependents(projectGraph, workspaceLibrary, seenWorkspaceLibraries),
|
|
81
|
+
], []);
|
|
82
|
+
deps.workspaceLibraries = mapWorkspaceLibrariesToTsConfigImport(deps.workspaceLibraries);
|
|
83
|
+
return deps;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function determineRemoteUrl(remote) {
|
|
87
|
+
var _a, _b, _c, _d, _e, _f;
|
|
88
|
+
const workspace = (0, file_utils_1.readWorkspaceJson)();
|
|
89
|
+
const serveTarget = (_b = (_a = workspace.projects[remote]) === null || _a === void 0 ? void 0 : _a.targets) === null || _b === void 0 ? void 0 : _b.serve;
|
|
90
|
+
if (!serveTarget) {
|
|
91
|
+
throw new Error(`Cannot automatically determine URL of remote (${remote}). Looked for property "host" in the project's "serve" target.\n
|
|
92
|
+
You can also use the tuple syntax in your webpack config to configure your remotes. e.g. \`remotes: [['remote1', '//localhost:4201']]\``);
|
|
93
|
+
}
|
|
94
|
+
const host = (_d = (_c = serveTarget.options) === null || _c === void 0 ? void 0 : _c.host) !== null && _d !== void 0 ? _d : '//localhost';
|
|
95
|
+
const port = (_f = (_e = serveTarget.options) === null || _e === void 0 ? void 0 : _e.port) !== null && _f !== void 0 ? _f : 4201;
|
|
96
|
+
return `${remote}@${host.endsWith('/') ? host.slice(0, -1) : host}:${port}/remoteEntry.js`;
|
|
97
|
+
}
|
|
98
|
+
function mapRemotes(remotes) {
|
|
99
|
+
const mappedRemotes = {};
|
|
100
|
+
for (const remote of remotes) {
|
|
101
|
+
if (Array.isArray(remote)) {
|
|
102
|
+
let [remoteName, remoteLocation] = remote;
|
|
103
|
+
if (!remoteLocation.includes('@')) {
|
|
104
|
+
remoteLocation = `${remoteName}@${remoteLocation}`;
|
|
105
|
+
}
|
|
106
|
+
if (!remoteLocation.match(/remoteEntry\.(js|mjs)$/)) {
|
|
107
|
+
remoteLocation = `${remoteLocation.endsWith('/')
|
|
108
|
+
? remoteLocation.slice(0, -1)
|
|
109
|
+
: remoteLocation}/remoteEntry.js`;
|
|
110
|
+
}
|
|
111
|
+
mappedRemotes[remoteName] = remoteLocation;
|
|
112
|
+
}
|
|
113
|
+
else if (typeof remote === 'string') {
|
|
114
|
+
mappedRemotes[remote] = determineRemoteUrl(remote);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return mappedRemotes;
|
|
118
|
+
}
|
|
119
|
+
function withModuleFederation(options) {
|
|
120
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const reactWebpackConfig = require('../../plugins/webpack');
|
|
122
|
+
const ws = (0, file_utils_1.readWorkspaceJson)();
|
|
123
|
+
const project = ws.projects[options.name];
|
|
124
|
+
if (!project) {
|
|
125
|
+
throw Error(`Cannot find project "${options.name}". Check that the name is correct in mfe.config.js`);
|
|
126
|
+
}
|
|
127
|
+
const dependencies = yield getDependentPackagesForProject(options.name);
|
|
128
|
+
const sharedLibraries = (0, webpack_utils_1.shareWorkspaceLibraries)(dependencies.workspaceLibraries);
|
|
129
|
+
const npmPackages = (0, webpack_utils_1.sharePackages)(dependencies.npmPackages);
|
|
130
|
+
const sharedDependencies = Object.assign(Object.assign({}, sharedLibraries.getLibraries()), npmPackages);
|
|
131
|
+
if (options.shared) {
|
|
132
|
+
for (const [libraryName, library] of Object.entries(sharedDependencies)) {
|
|
133
|
+
const mappedDependency = options.shared(libraryName, library);
|
|
134
|
+
if (mappedDependency === false) {
|
|
135
|
+
delete sharedDependencies[libraryName];
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
else if (!mappedDependency) {
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
sharedDependencies[libraryName] = mappedDependency;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return (config) => {
|
|
145
|
+
config = reactWebpackConfig(config);
|
|
146
|
+
config.output.uniqueName = options.name;
|
|
147
|
+
config.output.publicPath = 'auto';
|
|
148
|
+
config.optimization = {
|
|
149
|
+
runtimeChunk: false,
|
|
150
|
+
minimize: false,
|
|
151
|
+
};
|
|
152
|
+
const mappedRemotes = !options.remotes || options.remotes.length === 0
|
|
153
|
+
? {}
|
|
154
|
+
: mapRemotes(options.remotes);
|
|
155
|
+
config.plugins.push(new ModuleFederationPlugin({
|
|
156
|
+
name: options.name,
|
|
157
|
+
filename: 'remoteEntry.js',
|
|
158
|
+
exposes: options.exposes,
|
|
159
|
+
remotes: mappedRemotes,
|
|
160
|
+
shared: Object.assign({}, sharedDependencies),
|
|
161
|
+
}), sharedLibraries.getReplacementPlugin());
|
|
162
|
+
return config;
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
exports.withModuleFederation = withModuleFederation;
|
|
167
|
+
//# sourceMappingURL=with-module-federation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../../../packages/react/src/mfe/with-module-federation.ts"],"names":[],"mappings":";;;;AAAA,mDAIyB;AACzB,yCAMsB;AACtB,yEAGkD;AAElD,gEAAoE;AACpE,uFAAwF;AAiBxF,SAAS,qCAAqC,CAC5C,YAA+B,EAC/B,MAAc,EACd,cAA2B,IAAI,GAAG,EAAE;;IAEpC,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAC3B,OAAO,EAAE,CAAC;KACX;IACD,IAAI,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAExB,MAAM,qBAAqB,GAAG,CAC5B,MAAA,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,EAAE,CACxC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAClD,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,EAAE;QACpC,KAAK,MAAM,GAAG,IA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AC9B,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;oBACvC,SAAS;iBACV;qBAAM,IAAI,CAAC,gBAAgB,EAAE;oBAC5B,SAAS;iBACV;gBAED,kBAAkB,CAAC,WAAW,CAAC,GAAG,gBAAgB,CAAC;aACpD;SACF;QAED,OAAO,CAAC,MAAM,EAAE,EAAE;YAChB,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACpC,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;YAElC,MAAM,CAAC,YAAY,GAAG;gBACpB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aAChB,CAAC;YAEF,MAAM,aAAa,GACjB,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;gBAC9C,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAElC,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,IAAI,sBAAsB,CAAC;gBACzB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,aAAa;gBACtB,MAAM,oBACD,kBAAkB,CACtB;aACF,CAAC,EACF,eAAe,CAAC,oBAAoB,EAAE,CACvC,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnED,oDAmEC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactTestRendererVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryReactHooksVersion = exports.testingLibraryReactVersion = exports.typesReactRouterDomVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.typesReactIsVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactIsVersion = exports.reactDomVersion = exports.reactVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.10.0-rc.
|
|
4
|
+
exports.nxVersion = '13.10.0-rc.1';
|
|
5
5
|
exports.reactVersion = '18.0.0';
|
|
6
6
|
exports.reactDomVersion = '18.0.0';
|
|
7
7
|
exports.reactIsVersion = '18.0.0';
|