@nx/angular 19.0.0-beta.1 → 19.0.0-beta.10

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.d.ts CHANGED
@@ -11,6 +11,6 @@ export * from './src/executors/extract-i18n/extract-i18n.impl';
11
11
  import { executeDevServerBuilder } from './src/builders/dev-server/dev-server.impl';
12
12
  export {
13
13
  /**
14
- * @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v19.
14
+ * @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v20.
15
15
  */
16
16
  executeDevServerBuilder as executeWebpackDevServerBuilder, executeDevServerBuilder, };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "19.0.0-beta.1",
3
+ "version": "19.0.0-beta.10",
4
4
  "private": false,
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, 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.",
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": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/nrwl/nx.git",
@@ -78,14 +78,14 @@
78
78
  "tslib": "^2.3.0",
79
79
  "webpack": "^5.80.0",
80
80
  "webpack-merge": "^5.8.0",
81
- "@nx/devkit": "19.0.0-beta.1",
82
- "@nx/js": "19.0.0-beta.1",
83
- "@nx/eslint": "19.0.0-beta.1",
84
- "@nx/webpack": "19.0.0-beta.1",
85
- "@nx/web": "19.0.0-beta.1",
86
- "@nx/workspace": "19.0.0-beta.1",
81
+ "@nx/devkit": "19.0.0-beta.10",
82
+ "@nx/js": "19.0.0-beta.10",
83
+ "@nx/eslint": "19.0.0-beta.10",
84
+ "@nx/webpack": "19.0.0-beta.10",
85
+ "@nx/web": "19.0.0-beta.10",
86
+ "@nx/workspace": "19.0.0-beta.10",
87
87
  "piscina": "^4.4.0",
88
- "@nrwl/angular": "19.0.0-beta.1"
88
+ "@nrwl/angular": "19.0.0-beta.10"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
@@ -1,4 +1,4 @@
1
- import { NxComponentTestingOptions } from '@nx/cypress/plugins/cypress-preset';
1
+ import { NxComponentTestingPresetOptions } from '@nx/cypress/plugins/cypress-preset';
2
2
  /**
3
3
  * Angular nx preset for Cypress Component Testing
4
4
  *
@@ -17,4 +17,4 @@ import { NxComponentTestingOptions } from '@nx/cypress/plugins/cypress-preset';
17
17
  * @param pathToConfig will be used for loading project options and to construct the output paths for videos and screenshots
18
18
  * @param options override options
19
19
  */
20
- export declare function nxComponentTestingPreset(pathToConfig: string, options?: NxComponentTestingOptions): any;
20
+ export declare function nxComponentTestingPreset(pathToConfig: string, options?: NxComponentTestingPresetOptions): any;
@@ -73,7 +73,7 @@ class StylesheetProcessor {
73
73
  const browserslistData = browserslist(undefined, { path: this.basePath });
74
74
  const { version: ngPackagrVersion } = (0, angular_version_utils_1.getInstalledPackageVersionInfo)('ng-packagr');
75
75
  let postcssConfiguration;
76
- if ((0, semver_1.gte)(ngPackagrVersion, '17.3.0')) {
76
+ if ((0, semver_1.gt)(ngPackagrVersion, '17.2.0')) {
77
77
  const { loadPostcssConfiguration, } = require('ng-packagr/lib/styles/postcss-configuration');
78
78
  postcssConfiguration = loadPostcssConfiguration(this.projectBasePath);
79
79
  }
@@ -47,7 +47,7 @@ async function normalizeOptions(host, options) {
47
47
  skipTests: options.unitTestRunner === test_runners_1.UnitTestRunner.None,
48
48
  skipFormat: false,
49
49
  unitTestRunner: test_runners_1.UnitTestRunner.Jest,
50
- e2eTestRunner: test_runners_1.E2eTestRunner.Cypress,
50
+ e2eTestRunner: test_runners_1.E2eTestRunner.Playwright,
51
51
  linter: eslint_1.Linter.EsLint,
52
52
  strict: true,
53
53
  standalone: true,
@@ -110,10 +110,10 @@
110
110
  },
111
111
  "e2eTestRunner": {
112
112
  "type": "string",
113
- "enum": ["cypress", "playwright", "none"],
113
+ "enum": ["playwright", "cypress", "none"],
114
114
  "description": "Test runner to use for end to end (E2E) tests.",
115
115
  "x-prompt": "Which E2E test runner would you like to use?",
116
- "default": "cypress"
116
+ "default": "playwright"
117
117
  },
118
118
  "tags": {
119
119
  "type": "string",
@@ -117,10 +117,10 @@
117
117
  },
118
118
  "e2eTestRunner": {
119
119
  "type": "string",
120
- "enum": ["cypress", "playwright", "none"],
120
+ "enum": ["playwright", "cypress", "none"],
121
121
  "description": "Test runner to use for end to end (E2E) tests.",
122
122
  "x-prompt": "Which E2E test runner would you like to use?",
123
- "default": "cypress"
123
+ "default": "playwright"
124
124
  },
125
125
  "tags": {
126
126
  "type": "string",
@@ -111,10 +111,10 @@
111
111
  },
112
112
  "e2eTestRunner": {
113
113
  "type": "string",
114
- "enum": ["cypress", "playwright", "none"],
114
+ "enum": ["playwright", "cypress", "none"],
115
115
  "description": "Test runner to use for end to end (E2E) tests.",
116
116
  "x-prompt": "Which E2E test runner would you like to use?",
117
- "default": "cypress"
117
+ "default": "playwright"
118
118
  },
119
119
  "tags": {
120
120
  "type": "string",
@@ -14,8 +14,8 @@ async function default_1(tree) {
14
14
  const configToUpdate = configurationName
15
15
  ? projectConfiguration.targets[targetName].configurations[configurationName]
16
16
  : projectConfiguration.targets[targetName].options;
17
- if (configToUpdate.buildOptimizer === undefined &&
18
- configToUpdate.optimization !== undefined) {
17
+ if (configToUpdate?.buildOptimizer === undefined &&
18
+ configToUpdate?.optimization !== undefined) {
19
19
  configToUpdate.buildOptimizer = !!configToUpdate.optimization;
20
20
  }
21
21
  (0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfiguration);