@nx/cypress 18.0.0-beta.0 → 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/index.d.ts +2 -2
- package/index.js +4 -4
- package/package.json +6 -6
- package/plugins/cypress-preset.js +1 -1
- package/src/generators/component-configuration/schema.json +1 -1
- package/src/generators/configuration/configuration.js +3 -1
- package/src/generators/configuration/schema.json +1 -1
- package/src/generators/cypress-project/cypress-project.js +7 -1
- package/src/generators/cypress-project/schema.json +1 -1
- package/src/generators/init/schema.json +1 -1
- package/src/generators/migrate-to-cypress-11/schema.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { configurationGenerator } from './src/generators/configuration/configura
|
|
|
2
2
|
import { componentConfigurationGenerator } from './src/generators/component-configuration/component-configuration';
|
|
3
3
|
import { cypressProjectGenerator as _cypressProjectGenerator } from './src/generators/cypress-project/cypress-project';
|
|
4
4
|
export { configurationGenerator, componentConfigurationGenerator };
|
|
5
|
-
/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx
|
|
5
|
+
/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 19. */
|
|
6
6
|
export declare const cypressComponentConfiguration: typeof componentConfigurationGenerator;
|
|
7
7
|
export { configurationGenerator as cypressE2EConfigurationGenerator };
|
|
8
|
-
/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx
|
|
8
|
+
/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 19. */
|
|
9
9
|
export declare const cypressProjectGenerator: typeof _cypressProjectGenerator;
|
|
10
10
|
export { cypressInitGenerator } from './src/generators/init/init';
|
|
11
11
|
export { migrateCypressProject } from './src/generators/migrate-to-cypress-11/migrate-to-cypress-11';
|
package/index.js
CHANGED
|
@@ -8,11 +8,11 @@ const component_configuration_1 = require("./src/generators/component-configurat
|
|
|
8
8
|
Object.defineProperty(exports, "componentConfigurationGenerator", { enumerable: true, get: function () { return component_configuration_1.componentConfigurationGenerator; } });
|
|
9
9
|
const cypress_project_1 = require("./src/generators/cypress-project/cypress-project");
|
|
10
10
|
// Maintain backwards compatibility with the old names in case community plugins used them.
|
|
11
|
-
// TODO(
|
|
12
|
-
/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx
|
|
11
|
+
// TODO(v19): Remove old name
|
|
12
|
+
/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 19. */
|
|
13
13
|
exports.cypressComponentConfiguration = component_configuration_1.componentConfigurationGenerator;
|
|
14
|
-
// TODO(
|
|
15
|
-
/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx
|
|
14
|
+
// TODO(v19): Remove project generator
|
|
15
|
+
/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 19. */
|
|
16
16
|
exports.cypressProjectGenerator = cypress_project_1.cypressProjectGenerator;
|
|
17
17
|
var init_1 = require("./src/generators/init/init");
|
|
18
18
|
Object.defineProperty(exports, "cypressInitGenerator", { enumerable: true, get: function () { return init_1.cypressInitGenerator; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/cypress",
|
|
3
|
-
"version": "18.0.0-beta.
|
|
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": "18.0.0-beta.
|
|
38
|
-
"@nx/eslint": "18.0.0-beta.
|
|
39
|
-
"@nx/js": "18.0.0-beta.
|
|
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": "18.0.0-beta.
|
|
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
|
|
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.
|
|
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;
|