@nx/cypress 17.3.1 → 18.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "17.3.1",
3
+ "version": "18.0.0-beta.1",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
6
  "repository": {
@@ -34,14 +34,14 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "17.3.1",
38
- "@nx/eslint": "17.3.1",
39
- "@nx/js": "17.3.1",
37
+ "@nx/devkit": "18.0.0-beta.1",
38
+ "@nx/eslint": "18.0.0-beta.1",
39
+ "@nx/js": "18.0.0-beta.1",
40
40
  "@phenomnomnominal/tsquery": "~5.0.1",
41
41
  "detect-port": "^1.5.1",
42
- "semver": "7.5.3",
42
+ "semver": "^7.5.3",
43
43
  "tslib": "^2.3.0",
44
- "@nrwl/cypress": "17.3.1"
44
+ "@nrwl/cypress": "18.0.0-beta.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "cypress": ">= 3 < 14"
@@ -61,7 +61,7 @@ function nxE2EPreset(pathToConfig, options) {
61
61
  }*/ = {
62
62
  ...nxBaseCypressPreset(pathToConfig),
63
63
  fileServerFolder: '.',
64
- supportFile: `${basePath}/support/e2e.ts`,
64
+ supportFile: `${basePath}/support/e2e.{js,ts}`,
65
65
  specPattern: `${basePath}/**/*.cy.{js,jsx,ts,tsx}`,
66
66
  fixturesFolder: `${basePath}/fixtures`,
67
67
  [symbols_1.NX_PLUGIN_OPTIONS]: {
@@ -158,7 +158,9 @@ function addTarget(tree, opts) {
158
158
  projectConfig.targets.e2e = {
159
159
  executor: '@nx/cypress:cypress',
160
160
  options: {
161
- cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10 ? 'cypress.json' : 'cypress.config.ts'),
161
+ cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10
162
+ ? 'cypress.json'
163
+ : `cypress.config.${opts.js ? 'js' : 'ts'}`),
162
164
  testingType: 'e2e',
163
165
  },
164
166
  };
@@ -12,6 +12,7 @@ const add_linter_1 = require("../../utils/add-linter");
12
12
  const cypress_version_1 = require("../../utils/cypress-version");
13
13
  const versions_1 = require("../../utils/versions");
14
14
  const init_1 = require("../init/init");
15
+ const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
15
16
  function createFiles(tree, options) {
16
17
  // if not installed or >v10 use v10 folder
17
18
  // else use v9 folder
@@ -162,7 +163,12 @@ function ensureDependencies(tree, options) {
162
163
  if (options.bundler === 'vite') {
163
164
  devDependencies['vite'] = versions_1.viteVersion;
164
165
  }
165
- return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies);
166
+ return (0, devkit_1.runTasksInSerial)(...[
167
+ (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies),
168
+ () => {
169
+ (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
170
+ },
171
+ ]);
166
172
  }
167
173
  async function normalizeOptions(host, options) {
168
174
  let maybeRootProject;