@nrwl/react 13.10.0-rc.1 → 13.10.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react",
3
- "version": "13.10.0-rc.1",
3
+ "version": "13.10.0-rc.2",
4
4
  "description": "The React plugin 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, 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.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,14 +32,14 @@
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.15.0",
34
34
  "@babel/preset-react": "^7.14.5",
35
- "@nrwl/cypress": "13.10.0-rc.1",
36
- "@nrwl/devkit": "13.10.0-rc.1",
37
- "@nrwl/jest": "13.10.0-rc.1",
38
- "@nrwl/js": "13.10.0-rc.1",
39
- "@nrwl/linter": "13.10.0-rc.1",
40
- "@nrwl/storybook": "13.10.0-rc.1",
41
- "@nrwl/web": "13.10.0-rc.1",
42
- "@nrwl/workspace": "13.10.0-rc.1",
35
+ "@nrwl/cypress": "13.10.0-rc.2",
36
+ "@nrwl/devkit": "13.10.0-rc.2",
37
+ "@nrwl/jest": "13.10.0-rc.2",
38
+ "@nrwl/js": "13.10.0-rc.2",
39
+ "@nrwl/linter": "13.10.0-rc.2",
40
+ "@nrwl/storybook": "13.10.0-rc.2",
41
+ "@nrwl/web": "13.10.0-rc.2",
42
+ "@nrwl/workspace": "13.10.0-rc.2",
43
43
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
44
44
  "@svgr/webpack": "^6.1.2",
45
45
  "chalk": "4.1.0",
@@ -0,0 +1,2 @@
1
+ import { Tree } from 'nx/src/config/tree';
2
+ export declare function findFreePort(host: Tree): number;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findFreePort = void 0;
4
+ const devkit_1 = require("@nrwl/devkit");
5
+ function findFreePort(host) {
6
+ var _a, _b, _c;
7
+ const projects = (0, devkit_1.getProjects)(host);
8
+ let port = -Infinity;
9
+ for (const [, p] of projects.entries()) {
10
+ const curr = (_c = (_b = (_a = p.targets) === null || _a === void 0 ? void 0 : _a.serve) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.port;
11
+ if (typeof curr === 'number') {
12
+ port = Math.max(port, curr);
13
+ }
14
+ }
15
+ return port > 0 ? port + 1 : 4200;
16
+ }
17
+ exports.findFreePort = findFreePort;
18
+ //# sourceMappingURL=find-free-port.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-free-port.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/find-free-port.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAE3C,SAAgB,YAAY,CAAC,IAAU;;IACrC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC;IACrB,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE;QACtC,MAAM,IAAI,GAAG,MAAA,MAAA,MAAA,CAAC,CAAC,OAAO,0CAAE,KAAK,0CAAE,OAAO,0CAAE,IAAI,CAAC;QAC7C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC7B;KACF;IACD,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpC,CAAC;AAVD,oCAUC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = void 0;
4
4
  const assertion_1 = require("../../../utils/assertion");
5
5
  const devkit_1 = require("@nrwl/devkit");
6
+ const find_free_port_1 = require("./find-free-port");
6
7
  function normalizeOptions(host, options) {
7
8
  var _a, _b, _c, _d, _e, _f, _g;
8
9
  const appDirectory = options.directory
@@ -26,11 +27,12 @@ function normalizeOptions(host, options) {
26
27
  options.unitTestRunner = (_d = options.unitTestRunner) !== null && _d !== void 0 ? _d : 'jest';
27
28
  options.e2eTestRunner = (_e = options.e2eTestRunner) !== null && _e !== void 0 ? _e : 'cypress';
28
29
  options.compiler = (_f = options.compiler) !== null && _f !== void 0 ? _f : 'babel';
30
+ (_g = options.devServerPort) !== null && _g !== void 0 ? _g : (options.devServerPort = (0, find_free_port_1.findFreePort)(host));
29
31
  return Object.assign(Object.assign({}, options), { name: (0, devkit_1.names)(options.name).fileName, projectName: appProjectName, appProjectRoot,
30
32
  e2eProjectName,
31
33
  parsedTags,
32
34
  fileName,
33
- styledModule, hasStyles: options.style !== 'none', devServerPort: (_g = options.devServerPort) !== null && _g !== void 0 ? _g : 4200 });
35
+ styledModule, hasStyles: options.style !== 'none' });
34
36
  }
35
37
  exports.normalizeOptions = normalizeOptions;
36
38
  //# sourceMappingURL=normalize-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,yCAA8E;AAE9E,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAe;;IAEf,MAAM,YAAY,GAAG,OAAO,CAAC,SAAS;QACpC,CAAC,CAAC,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACxE,CAAC,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAEjC,M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AG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAE/C,uCACK,OAAO,KACV,IAAI,EAAE,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAClC,WAAW,EAAE,cAAc,EAC3B,cAAc;QACd,cAAc;QACd,UAAU;QACV,QAAQ;QACR,YAAY,EACZ,SAAS,EAAE,OAAO,CAAC,KAAK,KAAK,MAAM,EACnC,aAAa,EAAE,MAAA,OAAO,CAAC,aAAa,mCAAI,IAAI,IAC5C;AACJ,CAAC;AA7CD,4CA6CC"}
1
+ {"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAC5D,yCAA8E;AAC9E,qDAAgD;AAEhD,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAe;;IAEf,MAAM,YAAY,GAAG,OAAO,CAAC,SAAS;QACpC,CAAC,CAAC,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACxE,CAAC,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAEjC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IACvE,MAAM,cAAc,GAAG,GAAG,cAAc,MAAM,CAAC;IAE/C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,IAAA,sBAAa,EAAC,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC,CAAC;IAEnE,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;QAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,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
@@ -1 +1,12 @@
1
- module.exports = require('./webpack.config');
1
+ const withModuleFederation = require('@nrwl/react/module-federation');
2
+ const mfeConfig = require('./mfe.config');
3
+
4
+ module.exports = withModuleFederation({
5
+ ...mfeConfig,
6
+ // Override remote location for production build.
7
+ // Each entry is a pair of an unique name and the URL where it is deployed.
8
+ // remotes: [
9
+ // ['app1', 'http://app1.example.com/'],
10
+ // ['app2', 'http://app2.example.com/'],
11
+ // ],
12
+ });
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nrwl/devkit';
2
- import { Schema } from '../schema';
3
- export declare function updateHostWithRemote(host: Tree, options: Schema): void;
2
+ export declare function updateHostWithRemote(host: Tree, hostName: string, remoteName: string): void;
@@ -1,10 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateHostWithRemote = void 0;
4
- function updateHostWithRemote(host, options) {
5
- // find the host project path
6
- // Update remotes inside ${host_path}/src/remotes.d.ts
7
- // Update remotes inside ${host_path}/mfe.config.js
4
+ const devkit_1 = require("@nrwl/devkit");
5
+ const mfe_ast_utils_1 = require("../../../mfe/mfe-ast-utils");
6
+ const ts = require("typescript");
7
+ function updateHostWithRemote(host, hostName, remoteName) {
8
+ const hostConfig = (0, devkit_1.readProjectConfiguration)(host, hostName);
9
+ const mfeConfigPath = (0, devkit_1.joinPathFragments)(hostConfig.root, 'mfe.config.js');
10
+ const remoteDefsPath = (0, devkit_1.joinPathFragments)(hostConfig.sourceRoot, 'remotes.d.ts');
11
+ const appComponentPath = findAppComponentPath(host, hostConfig.sourceRoot);
12
+ if (host.exists(mfeConfigPath)) {
13
+ // find the host project path
14
+ // Update remotes inside ${host_path}/src/remotes.d.ts
15
+ let sourceCode = host.read(mfeConfigPath).toString();
16
+ const source = ts.createSourceFile(mfeConfigPath, sourceCode, ts.ScriptTarget.Latest, true);
17
+ host.write(mfeConfigPath, (0, devkit_1.applyChangesToString)(sourceCode, (0, mfe_ast_utils_1.addRemoteToMfeConfig)(source, remoteName)));
18
+ }
19
+ else {
20
+ // TODO(jack): Point to the nx.dev guide when ready.
21
+ devkit_1.logger.warn(`Could not find MFE configuration at ${mfeConfigPath}. Did you generate this project with "@nrwl/react:mfe-host"?`);
22
+ }
23
+ if (host.exists(remoteDefsPath)) {
24
+ let sourceCode = host.read(remoteDefsPath).toString();
25
+ const source = ts.createSourceFile(mfeConfigPath, sourceCode, ts.ScriptTarget.Latest, true);
26
+ host.write(remoteDefsPath, (0, devkit_1.applyChangesToString)(sourceCode, (0, mfe_ast_utils_1.addRemoteDefinition)(source, remoteName)));
27
+ }
28
+ else {
29
+ devkit_1.logger.warn(`Could not find remote definitions at ${remoteDefsPath}. Did you generate this project with "@nrwl/react:mfe-host"?`);
30
+ }
31
+ if (host.exists(appComponentPath)) {
32
+ let sourceCode = host.read(appComponentPath).toString();
33
+ const source = ts.createSourceFile(mfeConfigPath, sourceCode, ts.ScriptTarget.Latest, true);
34
+ host.write(appComponentPath, (0, devkit_1.applyChangesToString)(sourceCode, (0, mfe_ast_utils_1.addRemoteRoute)(source, (0, devkit_1.names)(remoteName))));
35
+ }
36
+ else {
37
+ devkit_1.logger.warn(`Could not find app component at ${appComponentPath}. Did you generate this project with "@nrwl/react:mfe-host"?`);
38
+ }
8
39
  }
9
40
  exports.updateHostWithRemote = updateHostWithRemote;
41
+ function findAppComponentPath(host, sourceRoot) {
42
+ const locations = ['app/app.tsx', 'app/App.tsx', 'app.tsx', 'App.tsx'];
43
+ for (const loc of locations) {
44
+ if (host.exists((0, devkit_1.joinPathFragments)(sourceRoot, loc))) {
45
+ return (0, devkit_1.joinPathFragments)(sourceRoot, loc);
46
+ }
47
+ }
48
+ }
10
49
  //# sourceMappingURL=update-host-with-remote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-host-with-remote.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/mfe-host/lib/update-host-with-remote.ts"],"names":[],"mappings":";;;AAGA,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAe;IAC9D,6BAA6B;IAC7B,sDAAsD;IACtD,mDAAmD;AACrD,CAAC;AAJD,oDAIC"}
1
+ {"version":3,"file":"update-host-with-remote.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/mfe-host/lib/update-host-with-remote.ts"],"names":[],"mappings":";;;AAAA,yCAOsB;AACtB,8DAIoC;AACpC,iCAAiC;AAEjC,SAAgB,oBAAoB,CAClC,IAAU,EACV,QAAgB,EAChB,UAAkB;IAElB,MAAM,UAAU,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5D,MAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAC1E,MAAM,cAAc,GAAG,IAAA,0BAAiB,EACtC,UAAU,CAAC,UAAU,EACrB,cAAc,CACf,CAAC;IACF,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAE3E,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;QAC9B,6BAA6B;QAC7B,sDAAsD;QACtD,IAAI,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC;QACrD,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CAChC,aAAa,EACb,UAAU,EACV,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;QACF,IAAI,CAAC,KAAK,CACR,aAAa,EACb,IAAA,6BAAoB,EAAC,UAAU,EAAE,IAAA,oCAAoB,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAC3E,CAAC;KACH;SAAM;QACL,oDAAoD;QACpD,eAAM,CAAC,IAAI,CACT,uCAAuC,aAAa,8DAA8D,CACnH,CAAC;KACH;IAED,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE;QAC/B,IAAI,UAAU,GA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C,UAAU,EAAE,GAAG,CAAC,CAAC;SAC3C;KACF;AACH,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { Tree } from '@nrwl/devkit';
2
2
  import { Schema } from './schema';
3
3
  export declare function mfeHostGenerator(host: Tree, schema: Schema): Promise<import("@nrwl/devkit").GeneratorCallback>;
4
+ export default mfeHostGenerator;
@@ -40,4 +40,5 @@ function mfeHostGenerator(host, schema) {
40
40
  });
41
41
  }
42
42
  exports.mfeHostGenerator = mfeHostGenerator;
43
+ exports.default = mfeHostGenerator;
43
44
  //# sourceMappingURL=mfe-host.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfe-host.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/mfe-host/mfe-host.ts"],"names":[],"mappings":";;;;AAAA,yCAAiD;AAEjD,4DAA8D;AAC9D,4EAAwE;AACxE,2CAA4C;AAC5C,iEAA4D;AAC5D,yDAA8D;AAC9D,yEAAmE;AAEnE,SAAsB,gBAAgB,CAAC,IAAU,EAAE,MAAc;;QAC/D,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,qBAAoB,EAAC,IAAI,kCAC3C,OAAO;YACV,8FAA8F;YAC9F,OAAO,EAAE,IAAI,IACb,CAAC;QAEH,IAAA,qBAAW,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,qCAAgB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,IAAA,4CAAmB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEnC,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,IAAI,UAAU,GAAG,OAAO,CAAC,aAAa,GAAG,CAAC,CAAC;YAC3C,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE;gBACnC,MAAM,IAAA,+BAAkB,EAAC,IAAI,EAAE;oBAC7B,IAAI,EAAE,MAAM;oBACZ,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AE;oBAC7B,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,cAAc,EAAE,OAAO,CAAC,cAAc;oBACtC,aAAa,EAAE,OAAO,CAAC,aAAa;oBACpC,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,aAAa,EAAE,UAAU;iBAC1B,CAAC,CAAC;gBACH,UAAU,EAAE,CAAC;aACd;SACF;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAlCD,4CAkCC;AAED,kBAAe,gBAAgB,CAAC"}
@@ -3,3 +3,4 @@ import { Schema } from './schema';
3
3
  import { NormalizedSchema } from '../application/schema';
4
4
  export declare function addMfeFiles(host: Tree, options: NormalizedSchema): void;
5
5
  export declare function mfeRemoteGenerator(host: Tree, schema: Schema): Promise<import("@nrwl/devkit").GeneratorCallback>;
6
+ export default mfeRemoteGenerator;
@@ -18,19 +18,15 @@ function mfeRemoteGenerator(host, schema) {
18
18
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
19
19
  const options = (0, normalize_options_1.normalizeOptions)(host, schema);
20
20
  const initApp = yield (0, application_1.default)(host, options);
21
+ if (schema.host) {
22
+ (0, update_host_with_remote_1.updateHostWithRemote)(host, schema.host, options.name);
23
+ }
21
24
  // Module federation requires bootstrap code to be dynamically imported.
22
25
  // Renaming original entry file so we can use `import(./bootstrap)` in
23
26
  // new entry file.
24
27
  host.rename((0, path_1.join)(options.appProjectRoot, 'src/main.tsx'), (0, path_1.join)(options.appProjectRoot, 'src/bootstrap.tsx'));
25
28
  addMfeFiles(host, options);
26
29
  (0, update_mfe_project_1.updateMfeProject)(host, options);
27
- if (schema.host) {
28
- (0, update_host_with_remote_1.updateHostWithRemote)(host, options);
29
- }
30
- else {
31
- // Log that no host has been passed in so we will use the default project as the host (Only if through CLI)
32
- // Since Remotes can be generated from the Host Generator we should probably have some identifier to use
33
- }
34
30
  if (!options.skipFormat) {
35
31
  yield (0, devkit_1.formatFiles)(host);
36
32
  }
@@ -38,4 +34,5 @@ function mfeRemoteGenerator(host, schema) {
38
34
  });
39
35
  }
40
36
  exports.mfeRemoteGenerator = mfeRemoteGenerator;
37
+ exports.default = mfeRemoteGenerator;
41
38
  //# sourceMappingURL=mfe-remote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mfe-remote.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/mfe-remote/mfe-remote.ts"],"names":[],"mappings":";;;;AAAA,+BAA4B;AAC5B,yCAAuE;AACvE,2FAAqF;AAGrF,4EAAwE;AACxE,4DAA8D;AAC9D,2EAAsE;AAEtE,qFAA+E;AAE/E,SAAgB,WAAW,CAAC,IAAU,EAAE,OAAyB;IAC/D,MAAM,iBAAiB,iDAClB,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,GACnB,OAAO,KACV,IAAI,EAAE,EAAE,GACT,CAAC;IAEF,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC,EAC9B,OAAO,CAAC,cAAc,EACtB,iBAAiB,CAClB,CAAC;AACJ,CAAC;AAbD,kCAaC;AAED,SAAsB,kBAAkB,CAAC,IAAU,EAAE,MAAc;;QACjE,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1D,wEAAwE;QACxE,sEAAsE;QACtE,kBAAkB;QAClB,IAAI,CAAC,MAAM,CACT,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAC5C,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAClD,CAAC;QAEF,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,qCAAgB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,MAAM,CAAC,IAAI,EAAE;YACf,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACrC;aAAM;YACL,2GAA2G;YAC3G,wGAAwG;SACzG;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CAAA;AA1BD,gDA0BC"}
1
+ {"version":3,"file":"mfe-remote.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/mfe-remote/mfe-remote.ts"],"names":[],"mappings":";;;;AAAA,+BAA4B;AAC5B,yCAAuE;AACvE,2FAAqF;AAGrF,4EAAwE;AACxE,4DAA8D;AAC9D,2EAAsE;AAEtE,qFAA+E;AAE/E,SAAgB,WAAW,CAAC,IAAU,EAAE,OAAyB;IAC/D,MAAM,iBAAiB,iDAClB,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,GACnB,OAAO,KACV,IAAI,EAAE,EAAE,GACT,CAAC;IAEF,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC,EAC9B,OAAO,CAAC,cAAc,EACtB,iBAAiB,CAClB,CAAC;AACJ,CAAC;AAbD,kCAaC;AAED,SAAsB,kBAAkB,CAAC,IAAU,EAAE,MAAc;;QACjE,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1D,IAAI,MAAM,CAAC,IAAI,EAAE;YACf,IAAA,8CAAoB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;SACvD;QAED,wEAAwE;QACxE,sEAAsE;QACtE,kBAAkB;QAClB,IAAI,CAAC,MAAM,CACT,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAC5C,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAClD,CAAC;QAEF,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,qCAAgB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CAAA;AAxBD,gDAwBC;AAED,kBAAe,kBAAkB,CAAC"}
@@ -9,10 +9,6 @@ export interface Schema {
9
9
  directory?: string;
10
10
  tags?: string;
11
11
  unitTestRunner: 'jest' | 'none';
12
- /**
13
- * @deprecated
14
- */
15
- babelJest?: boolean;
16
12
  e2eTestRunner: 'cypress' | 'none';
17
13
  linter: Linter;
18
14
  pascalCaseFiles?: boolean;
@@ -9,4 +9,5 @@ export interface StorybookConfigureSchema {
9
9
  linter?: Linter;
10
10
  cypressDirectory?: string;
11
11
  standaloneConfig?: boolean;
12
+ projectBuildConfig?: string;
12
13
  }
@@ -47,6 +47,10 @@
47
47
  "enum": ["eslint", "tslint"],
48
48
  "default": "eslint"
49
49
  },
50
+ "projectBuildConfig": {
51
+ "description": "Provide a custom projectBuildConfig for the Angular executor. If left blank, Nx will use the default.",
52
+ "type": "string"
53
+ },
50
54
  "standaloneConfig": {
51
55
  "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
52
56
  "type": "boolean"
@@ -0,0 +1,8 @@
1
+ import * as ts from 'typescript';
2
+ import { StringChange } from '@nrwl/devkit';
3
+ export declare function addRemoteToMfeConfig(source: ts.SourceFile, app: string): StringChange[];
4
+ export declare function addRemoteDefinition(source: ts.SourceFile, app: string): StringChange[];
5
+ export declare function addRemoteRoute(source: ts.SourceFile, names: {
6
+ fileName: string;
7
+ className: string;
8
+ }): StringChange[];
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addRemoteRoute = exports.addRemoteDefinition = exports.addRemoteToMfeConfig = void 0;
4
+ const ts = require("typescript");
5
+ const devkit_1 = require("@nrwl/devkit");
6
+ const find_nodes_1 = require("@nrwl/workspace/src/utilities/typescript/find-nodes");
7
+ const ast_utils_1 = require("../utils/ast-utils");
8
+ function addRemoteToMfeConfig(source, app) {
9
+ const assignments = (0, find_nodes_1.findNodes)(source, ts.SyntaxKind.PropertyAssignment);
10
+ const remotesAssignment = assignments.find((s) => s.name.getText() === 'remotes');
11
+ if (remotesAssignment) {
12
+ const arrayExpression = remotesAssignment.initializer;
13
+ return arrayExpression.elements
14
+ ? [
15
+ {
16
+ type: devkit_1.ChangeType.Insert,
17
+ index: arrayExpression.elements[arrayExpression.elements.length - 1].end,
18
+ text: `,`,
19
+ },
20
+ {
21
+ type: devkit_1.ChangeType.Insert,
22
+ index: remotesAssignment.end - 1,
23
+ text: `'${app}',\n`,
24
+ },
25
+ ]
26
+ : [];
27
+ }
28
+ const binaryExpressions = (0, find_nodes_1.findNodes)(source, ts.SyntaxKind.BinaryExpression);
29
+ const exportExpression = binaryExpressions.find((b) => {
30
+ if (b.left.kind === ts.SyntaxKind.PropertyAccessExpression) {
31
+ const pae = b.left;
32
+ return (pae.expression.getText() === 'module' &&
33
+ pae.name.getText() === 'exports');
34
+ }
35
+ });
36
+ if ((exportExpression === null || exportExpression === void 0 ? void 0 : exportExpression.right.kind) === ts.SyntaxKind.ObjectLiteralExpression) {
37
+ const ole = exportExpression.right;
38
+ return [
39
+ {
40
+ type: devkit_1.ChangeType.Insert,
41
+ index: ole.end - 1,
42
+ text: `remotes: ['${app}']\n`,
43
+ },
44
+ ];
45
+ }
46
+ return [];
47
+ }
48
+ exports.addRemoteToMfeConfig = addRemoteToMfeConfig;
49
+ function addRemoteDefinition(source, app) {
50
+ return [
51
+ {
52
+ type: devkit_1.ChangeType.Insert,
53
+ index: source.end,
54
+ text: `\ndeclare module '${app}/Module';`,
55
+ },
56
+ ];
57
+ }
58
+ exports.addRemoteDefinition = addRemoteDefinition;
59
+ function addRemoteRoute(source, names) {
60
+ const routes = (0, ast_utils_1.findElements)(source, 'Route');
61
+ const links = (0, ast_utils_1.findElements)(source, 'Link');
62
+ if (routes.length === 0) {
63
+ return [];
64
+ }
65
+ else {
66
+ const changes = [];
67
+ const firstRoute = routes[0];
68
+ const firstLink = links[0];
69
+ changes.push(...(0, ast_utils_1.addImport)(source, `const ${names.className} = React.lazy(() => import('${names.fileName}/Module'));`));
70
+ changes.push({
71
+ type: devkit_1.ChangeType.Insert,
72
+ index: firstRoute.end,
73
+ text: `\n<Route path="/${names.fileName}" render={() => <${names.className} />} />`,
74
+ });
75
+ if (firstLink) {
76
+ const parentLi = (0, ast_utils_1.findClosestOpening)('li', firstLink);
77
+ if (parentLi) {
78
+ changes.push({
79
+ type: devkit_1.ChangeType.Insert,
80
+ index: parentLi.end,
81
+ text: `\n<li><Link to="/${names.fileName}">${names.className}</Link></li>`,
82
+ });
83
+ }
84
+ else {
85
+ changes.push({
86
+ type: devkit_1.ChangeType.Insert,
87
+ index: firstLink.parent.end,
88
+ text: `\n<Link to="/${names.fileName}">${names.className}</Link>`,
89
+ });
90
+ }
91
+ }
92
+ return changes;
93
+ }
94
+ }
95
+ exports.addRemoteRoute = addRemoteRoute;
96
+ //# sourceMappingURL=mfe-ast-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mfe-ast-utils.js","sourceRoot":"","sources":["../../../../../packages/react/src/mfe/mfe-ast-utils.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,yCAAwD;AACxD,o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AAI,CAAC;YACX,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK,EAAE,UAAU,CAAC,GAAG;YACrB,IAAI,EAAE,mBAAmB,KAAK,CAAC,QAAQ,oBAAoB,KAAK,CAAC,SAAS,SAAS;SACpF,CAAC,CAAC;QAEH,IAAI,SAAS,EAAE;YACb,MAAM,QAAQ,GAAG,IAAA,8BAAkB,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;YACrD,IAAI,QAAQ,EAAE;gBACZ,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,mBAAU,CAAC,MAAM;oBACvB,KAAK,EAAE,QAAQ,CAAC,GAAG;oBACnB,IAAI,EAAE,oBAAoB,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,SAAS,cAAc;iBAC3E,CAAC,CAAC;aACJ;iBAAM;gBACL,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,mBAAU,CAAC,MAAM;oBACvB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG;oBAC3B,IAAI,EAAE,gBAAgB,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,SAAS,SAAS;iBAClE,CAAC,CAAC;aACJ;SACF;QAED,OAAO,OAAO,CAAC;KAChB;AACH,CAAC;AAjDD,wCAiDC"}
@@ -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.1';
4
+ exports.nxVersion = '13.10.0-rc.2';
5
5
  exports.reactVersion = '18.0.0';
6
6
  exports.reactDomVersion = '18.0.0';
7
7
  exports.reactIsVersion = '18.0.0';