@nx/remix 21.0.0-beta.4 → 21.0.0-beta.5
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/remix",
|
|
3
|
-
"version": "21.0.0-beta.
|
|
3
|
+
"version": "21.0.0-beta.5",
|
|
4
4
|
"description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "21.0.0-beta.
|
|
33
|
-
"@nx/js": "21.0.0-beta.
|
|
34
|
-
"@nx/react": "21.0.0-beta.
|
|
32
|
+
"@nx/devkit": "21.0.0-beta.5",
|
|
33
|
+
"@nx/js": "21.0.0-beta.5",
|
|
34
|
+
"@nx/react": "21.0.0-beta.5",
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
36
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
37
37
|
},
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addE2E = addE2E;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
|
6
|
-
const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
|
|
7
|
-
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
8
6
|
const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
|
|
9
7
|
async function addE2E(tree, options) {
|
|
10
8
|
const hasRemixPlugin = (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
|
|
@@ -42,31 +40,14 @@ async function addE2E(tree, options) {
|
|
|
42
40
|
skipFormat: true,
|
|
43
41
|
devServerTarget: e2eWebsServerInfo.e2eDevServerTarget,
|
|
44
42
|
baseUrl: e2eWebsServerInfo.e2eWebServerAddress,
|
|
45
|
-
webServerCommands:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
: undefined,
|
|
51
|
-
ciWebServerCommand: hasRemixPlugin
|
|
52
|
-
? e2eWebsServerInfo.e2eCiWebServerCommand
|
|
53
|
-
: undefined,
|
|
43
|
+
webServerCommands: {
|
|
44
|
+
default: e2eWebsServerInfo.e2eWebServerCommand,
|
|
45
|
+
production: e2eWebsServerInfo.e2eCiWebServerCommand,
|
|
46
|
+
},
|
|
47
|
+
ciWebServerCommand: e2eWebsServerInfo.e2eCiWebServerCommand,
|
|
54
48
|
ciBaseUrl: e2eWebsServerInfo.e2eCiBaseUrl,
|
|
55
49
|
addPlugin: options.addPlugin,
|
|
56
50
|
});
|
|
57
|
-
if (options.addPlugin ||
|
|
58
|
-
(0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
|
|
59
|
-
? p === '@nx/cypress/plugin'
|
|
60
|
-
: p.plugin === '@nx/cypress/plugin')) {
|
|
61
|
-
let buildTarget = '^build';
|
|
62
|
-
if (hasRemixPlugin) {
|
|
63
|
-
const matchingPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, `@nx/remix/plugin`, (0, devkit_1.joinPathFragments)(options.projectRoot, 'remix.config.js'));
|
|
64
|
-
if (matchingPlugin && typeof matchingPlugin !== 'string') {
|
|
65
|
-
buildTarget = `^${matchingPlugin.options?.buildTargetName ?? 'build'}`;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/cypress/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `cypress.config.ts`));
|
|
69
|
-
}
|
|
70
51
|
return e2eTask;
|
|
71
52
|
}
|
|
72
53
|
else if (options.e2eTestRunner === 'playwright') {
|
|
@@ -107,19 +88,6 @@ async function addE2E(tree, options) {
|
|
|
107
88
|
rootProject: options.rootProject,
|
|
108
89
|
addPlugin: options.addPlugin,
|
|
109
90
|
});
|
|
110
|
-
if (options.addPlugin ||
|
|
111
|
-
(0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
|
|
112
|
-
? p === '@nx/playwright/plugin'
|
|
113
|
-
: p.plugin === '@nx/playwright/plugin')) {
|
|
114
|
-
let buildTarget = '^build';
|
|
115
|
-
if (hasRemixPlugin) {
|
|
116
|
-
const matchingPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, `@nx/remix/plugin`, (0, devkit_1.joinPathFragments)(options.projectRoot, 'remix.config.js'));
|
|
117
|
-
if (matchingPlugin && typeof matchingPlugin !== 'string') {
|
|
118
|
-
buildTarget = `^${matchingPlugin.options?.buildTargetName ?? 'build'}`;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/playwright/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `playwright.config.ts`));
|
|
122
|
-
}
|
|
123
91
|
return e2eTask;
|
|
124
92
|
}
|
|
125
93
|
else {
|