@nx/angular 0.0.0-pr-27504-68aa5d2 → 0.0.0-pr-27640-2822b72

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
@@ -22,7 +22,7 @@
22
22
 
23
23
  # Nx: Smart Monorepos · Fast CI
24
24
 
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.
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 an [Angular plugin for Nx](https://nx.dev/nx-api/angular).
28
28
 
@@ -1,2 +1,2 @@
1
- export { setRemoteUrlResolver, setRemoteDefinitions, loadRemoteModule, } from './mf';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL21mL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxvQkFBb0IsRUFDcEIsb0JBQW9CLEVBQ3BCLGdCQUFnQixHQUNqQixNQUFNLE1BQU0sQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7XG4gIHNldFJlbW90ZVVybFJlc29sdmVyLFxuICBzZXRSZW1vdGVEZWZpbml0aW9ucyxcbiAgbG9hZFJlbW90ZU1vZHVsZSxcbn0gZnJvbSAnLi9tZic7XG4iXX0=
1
+ export { setRemoteUrlResolver, setRemoteDefinitions, setRemoteDefinition, loadRemoteModule, } from './mf';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL21mL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxvQkFBb0IsRUFDcEIsb0JBQW9CLEVBQ3BCLG1CQUFtQixFQUNuQixnQkFBZ0IsR0FDakIsTUFBTSxNQUFNLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQge1xuICBzZXRSZW1vdGVVcmxSZXNvbHZlcixcbiAgc2V0UmVtb3RlRGVmaW5pdGlvbnMsXG4gIHNldFJlbW90ZURlZmluaXRpb24sXG4gIGxvYWRSZW1vdGVNb2R1bGUsXG59IGZyb20gJy4vbWYnO1xuIl19
@@ -53,5 +53,5 @@ async function loadRemoteContainer(remoteName) {
53
53
  * Generated bundle index. Do not edit.
54
54
  */
55
55
 
56
- export { loadRemoteModule, setRemoteDefinitions, setRemoteUrlResolver };
56
+ export { loadRemoteModule, setRemoteDefinition, setRemoteDefinitions, setRemoteUrlResolver };
57
57
  //# sourceMappingURL=nx-angular-mf.mjs.map
package/mf/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { setRemoteUrlResolver, setRemoteDefinitions, loadRemoteModule, } from './mf';
1
+ export { setRemoteUrlResolver, setRemoteDefinitions, setRemoteDefinition, loadRemoteModule, } from './mf';
package/migrations.json CHANGED
@@ -2110,6 +2110,18 @@
2110
2110
  "alwaysAddToPackageJson": false
2111
2111
  }
2112
2112
  }
2113
+ },
2114
+ "19.6.1-ngrx": {
2115
+ "version": "19.6.1-beta.0",
2116
+ "requires": {
2117
+ "@angular/core": "^18.0.0"
2118
+ },
2119
+ "packages": {
2120
+ "@ngrx/store": {
2121
+ "version": "^18.0.2",
2122
+ "alwaysAddToPackageJson": false
2123
+ }
2124
+ }
2113
2125
  }
2114
2126
  }
2115
2127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "0.0.0-pr-27504-68aa5d2",
3
+ "version": "0.0.0-pr-27640-2822b72",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -79,14 +79,14 @@
79
79
  "webpack-merge": "^5.8.0",
80
80
  "webpack": "^5.88.0",
81
81
  "@module-federation/enhanced": "~0.2.3",
82
- "@nx/devkit": "0.0.0-pr-27504-68aa5d2",
83
- "@nx/js": "0.0.0-pr-27504-68aa5d2",
84
- "@nx/eslint": "0.0.0-pr-27504-68aa5d2",
85
- "@nx/webpack": "0.0.0-pr-27504-68aa5d2",
86
- "@nx/web": "0.0.0-pr-27504-68aa5d2",
87
- "@nx/workspace": "0.0.0-pr-27504-68aa5d2",
82
+ "@nx/devkit": "0.0.0-pr-27640-2822b72",
83
+ "@nx/js": "0.0.0-pr-27640-2822b72",
84
+ "@nx/eslint": "0.0.0-pr-27640-2822b72",
85
+ "@nx/webpack": "0.0.0-pr-27640-2822b72",
86
+ "@nx/web": "0.0.0-pr-27640-2822b72",
87
+ "@nx/workspace": "0.0.0-pr-27640-2822b72",
88
88
  "piscina": "^4.4.0",
89
- "@nrwl/angular": "0.0.0-pr-27504-68aa5d2"
89
+ "@nrwl/angular": "0.0.0-pr-27640-2822b72"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
@@ -66,7 +66,10 @@ async function* moduleFederationDevServerExecutor(schema, context) {
66
66
  }, pathToManifestFile);
67
67
  options.staticRemotesPort ??= remotes.staticRemotePort;
68
68
  // Set NX_MF_DEV_REMOTES for the Nx Runtime Library Control Plugin
69
- process.env.NX_MF_DEV_REMOTES = JSON.stringify(remotes.devRemotes.map((r) => (typeof r === 'string' ? r : r.remoteName)));
69
+ process.env.NX_MF_DEV_REMOTES = JSON.stringify([
70
+ ...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []),
71
+ project.name,
72
+ ]);
70
73
  const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
71
74
  const mappedLocationsOfStaticRemotes = await (0, lib_1.buildStaticRemotes)(staticRemotesConfig, nxBin, context, options);
72
75
  const devRemoteIters = await (0, lib_1.startRemotes)(remotes.devRemotes, workspaceProjects, options, context, 'serve');
@@ -61,7 +61,10 @@ async function* moduleFederationSsrDevServerExecutor(schema, context) {
61
61
  const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticSsrRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
62
62
  const mappedLocationsOfStaticRemotes = await (0, build_static_remotes_1.buildStaticRemotes)(staticRemotesConfig, nxBin, context, options);
63
63
  // Set NX_MF_DEV_REMOTES for the Nx Runtime Library Control Plugin
64
- process.env.NX_MF_DEV_REMOTES = JSON.stringify(options.devRemotes);
64
+ process.env.NX_MF_DEV_REMOTES = JSON.stringify([
65
+ ...(options.devRemotes ?? []),
66
+ project.name,
67
+ ]);
65
68
  const devRemotes = await (0, start_dev_remotes_1.startRemotes)(remotes.devRemotes, workspaceProjects, options, context);
66
69
  const staticRemotes = (0, start_static_remotes_1.startStaticRemotes)(staticRemotesConfig, context, options);
67
70
  (0, start_ssr_remote_proxies_1.startSsrRemoteProxies)(staticRemotesConfig, mappedLocationsOfStaticRemotes, options.ssl
@@ -1,8 +1,8 @@
1
1
  import { E2eTestRunner, UnitTestRunner } from '../../../utils/test-runners';
2
2
  import type { Schema } from '../schema';
3
- import { Linter } from '@nx/eslint';
3
+ import { Linter, LinterType } from '@nx/eslint';
4
4
  export interface NormalizedSchema extends Schema {
5
- linter: Linter;
5
+ linter: Linter | LinterType;
6
6
  unitTestRunner: UnitTestRunner;
7
7
  e2eTestRunner: E2eTestRunner;
8
8
  prefix: 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 { E2eTestRunner, UnitTestRunner } from '../../utils/test-runners';
4
4
  import type { Styles } from '../utils/types';
5
5
 
@@ -17,7 +17,7 @@ export interface Schema {
17
17
  directory?: string;
18
18
  projectNameAndRootFormat?: ProjectNameAndRootFormat;
19
19
  tags?: string;
20
- linter?: Linter;
20
+ linter?: Linter | LinterType;
21
21
  unitTestRunner?: UnitTestRunner;
22
22
  e2eTestRunner?: E2eTestRunner;
23
23
  backendProject?: 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 { E2eTestRunner, UnitTestRunner } from '../../utils/test-runners';
4
4
  import type { Styles } from '../utils/types';
5
5
 
@@ -17,7 +17,7 @@ export interface Schema {
17
17
  directory?: string;
18
18
  projectNameAndRootFormat?: ProjectNameAndRootFormat;
19
19
  tags?: string;
20
- linter?: Linter;
20
+ linter?: Linter | LinterType;
21
21
  unitTestRunner?: UnitTestRunner;
22
22
  e2eTestRunner?: E2eTestRunner;
23
23
  backendProject?: string;
@@ -1,5 +1,5 @@
1
1
  import { UnitTestRunner } from '../../../utils/test-runners';
2
- import type { Linter } from '@nx/eslint';
2
+ import type { Linter, LinterType } from '@nx/eslint';
3
3
  export interface NormalizedSchema {
4
4
  libraryOptions: {
5
5
  name: string;
@@ -26,7 +26,7 @@ export interface NormalizedSchema {
26
26
  skipPackageJson?: boolean;
27
27
  skipPostInstall?: boolean;
28
28
  standalone?: boolean;
29
- linter: Linter;
29
+ linter: Linter | LinterType;
30
30
  unitTestRunner: UnitTestRunner;
31
31
  prefix: string;
32
32
  fileName: 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 { UnitTestRunner } from '../../utils/test-runners';
4
4
 
5
5
  export interface Schema {
@@ -24,7 +24,7 @@ export interface Schema {
24
24
  parent?: string;
25
25
  tags?: string;
26
26
  strict?: boolean;
27
- linter?: Linter;
27
+ linter?: Linter | LinterType;
28
28
  unitTestRunner?: UnitTestRunner;
29
29
  compilationMode?: 'full' | 'partial';
30
30
  setParserOptionsProject?: boolean;
@@ -1,4 +1,4 @@
1
- import { Linter } from '@nx/eslint';
1
+ import { Linter, LinterType } from '@nx/eslint';
2
2
  import { E2eTestRunner, UnitTestRunner } from '../../utils/test-runners';
3
3
  import type { Styles } from '../utils/types';
4
4
 
@@ -11,6 +11,6 @@ export interface GeneratorOptions {
11
11
  skipInstall?: boolean;
12
12
  skipPostInstall?: boolean;
13
13
  style?: Styles;
14
- linter?: Linter;
14
+ linter?: Linter | LinterType;
15
15
  skipPackageJson?: boolean;
16
16
  }
@@ -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 { E2eTestRunner, UnitTestRunner } from '../../utils/test-runners';
4
4
  import type { Styles } from '../utils/types';
5
5
 
@@ -16,7 +16,7 @@ export interface Schema {
16
16
  directory?: string;
17
17
  projectNameAndRootFormat?: ProjectNameAndRootFormat;
18
18
  tags?: string;
19
- linter?: Linter;
19
+ linter?: Linter | LinterType;
20
20
  unitTestRunner?: UnitTestRunner;
21
21
  e2eTestRunner?: E2eTestRunner;
22
22
  backendProject?: string;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.changeBuildTarget = changeBuildTarget;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
5
6
  function changeBuildTarget(host, options) {
6
7
  const appConfig = (0, devkit_1.readProjectConfiguration)(host, options.appName);
7
8
  const configExtName = options.typescriptConfiguration ? 'ts' : 'js';
@@ -19,4 +20,5 @@ function changeBuildTarget(host, options) {
19
20
  },
20
21
  };
21
22
  (0, devkit_1.updateProjectConfiguration)(host, options.appName, appConfig);
23
+ (0, target_defaults_utils_1.addBuildTargetDefaults)(host, '@nx/angular:webpack-browser');
22
24
  }
@@ -1,9 +1,9 @@
1
- import type { Linter } from '@nx/eslint';
1
+ import type { Linter, LinterType } from '@nx/eslint';
2
2
 
3
3
  export interface StorybookConfigurationOptions {
4
4
  configureStaticServe?: boolean;
5
5
  generateStories: boolean;
6
- linter: Linter;
6
+ linter: Linter | LinterType;
7
7
  project: string;
8
8
  tsConfiguration?: boolean;
9
9
  skipFormat?: boolean;
@@ -2,7 +2,7 @@ export declare const nxVersion: any;
2
2
  export declare const angularVersion = "~18.2.0";
3
3
  export declare const angularDevkitVersion = "~18.2.0";
4
4
  export declare const ngPackagrVersion = "~18.2.0";
5
- export declare const ngrxVersion = "^18.0.1";
5
+ export declare const ngrxVersion = "^18.0.2";
6
6
  export declare const rxjsVersion = "~7.8.0";
7
7
  export declare const zoneJsVersion = "~0.14.3";
8
8
  export declare const angularJsVersion = "1.7.9";
@@ -5,7 +5,7 @@ exports.nxVersion = require('../../package.json').version;
5
5
  exports.angularVersion = '~18.2.0';
6
6
  exports.angularDevkitVersion = '~18.2.0';
7
7
  exports.ngPackagrVersion = '~18.2.0';
8
- exports.ngrxVersion = '^18.0.1';
8
+ exports.ngrxVersion = '^18.0.2';
9
9
  exports.rxjsVersion = '~7.8.0';
10
10
  exports.zoneJsVersion = '~0.14.3';
11
11
  exports.angularJsVersion = '1.7.9';