@nx/angular 19.6.0-canary.20240806-a3869a8 → 19.6.0-canary.20240809-d3747e0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "19.6.0-canary.20240806-a3869a8",
3
+ "version": "19.6.0-canary.20240809-d3747e0",
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": "19.6.0-canary.20240806-a3869a8",
83
- "@nx/js": "19.6.0-canary.20240806-a3869a8",
84
- "@nx/eslint": "19.6.0-canary.20240806-a3869a8",
85
- "@nx/webpack": "19.6.0-canary.20240806-a3869a8",
86
- "@nx/web": "19.6.0-canary.20240806-a3869a8",
87
- "@nx/workspace": "19.6.0-canary.20240806-a3869a8",
82
+ "@nx/devkit": "19.6.0-canary.20240809-d3747e0",
83
+ "@nx/js": "19.6.0-canary.20240809-d3747e0",
84
+ "@nx/eslint": "19.6.0-canary.20240809-d3747e0",
85
+ "@nx/webpack": "19.6.0-canary.20240809-d3747e0",
86
+ "@nx/web": "19.6.0-canary.20240809-d3747e0",
87
+ "@nx/workspace": "19.6.0-canary.20240809-d3747e0",
88
88
  "piscina": "^4.4.0",
89
- "@nrwl/angular": "19.6.0-canary.20240806-a3869a8"
89
+ "@nrwl/angular": "19.6.0-canary.20240809-d3747e0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
@@ -4,6 +4,7 @@ exports.addE2e = addE2e;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const versions_1 = require("../../../utils/versions");
6
6
  const version_utils_1 = require("../../utils/version-utils");
7
+ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
7
8
  async function addE2e(tree, options) {
8
9
  // since e2e are separate projects, default to adding plugins
9
10
  const nxJson = (0, devkit_1.readNxJson)(tree);
@@ -32,6 +33,9 @@ async function addE2e(tree, options) {
32
33
  rootProject: options.rootProject,
33
34
  addPlugin,
34
35
  });
36
+ if (addPlugin) {
37
+ await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/cypress/plugin', '^build', (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'cypress.config.ts'));
38
+ }
35
39
  }
36
40
  else if (options.e2eTestRunner === 'playwright') {
37
41
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', versions_1.nxVersion);
@@ -55,6 +59,9 @@ async function addE2e(tree, options) {
55
59
  rootProject: options.rootProject,
56
60
  addPlugin,
57
61
  });
62
+ if (addPlugin) {
63
+ await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/playwright/plugin', '^build', (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'playwright.config.ts'));
64
+ }
58
65
  }
59
66
  }
60
67
  function addFileServerTarget(tree, options, targetName) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createProject = createProject;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const version_utils_1 = require("../../utils/version-utils");
6
- const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
6
+ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
7
7
  function createProject(tree, options) {
8
8
  const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
9
9
  const buildExecutor = options.bundler === 'webpack'
@@ -15,7 +15,7 @@ function createProject(tree, options) {
15
15
  const buildMainOptionName = angularMajorVersion >= 17 && options.bundler === 'esbuild'
16
16
  ? 'browser'
17
17
  : 'main';
18
- (0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, buildExecutor);
18
+ (0, target_defaults_utils_1.addBuildTargetDefaults)(tree, buildExecutor);
19
19
  let budgets = undefined;
20
20
  if (options.bundler === 'webpack' || angularMajorVersion >= 17) {
21
21
  if (options.strict) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addProject = addProject;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
5
+ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
6
6
  function addProject(tree, libraryOptions) {
7
7
  const project = {
8
8
  name: libraryOptions.name,
@@ -17,7 +17,7 @@ function addProject(tree, libraryOptions) {
17
17
  const executor = libraryOptions.publishable
18
18
  ? '@nx/angular:package'
19
19
  : '@nx/angular:ng-packagr-lite';
20
- (0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, executor);
20
+ (0, target_defaults_utils_1.addBuildTargetDefaults)(tree, executor);
21
21
  project.targets.build = {
22
22
  executor,
23
23
  outputs: ['{workspaceRoot}/dist/{projectRoot}'],