@nx/vue 21.0.0-beta.3 → 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/vue",
3
- "version": "21.0.0-beta.3",
3
+ "version": "21.0.0-beta.5",
4
4
  "private": false,
5
5
  "description": "The Vue plugin for Nx contains executors and generators for managing Vue applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  "dependencies": {
32
32
  "minimatch": "9.0.3",
33
33
  "tslib": "^2.3.0",
34
- "@nx/devkit": "21.0.0-beta.3",
35
- "@nx/js": "21.0.0-beta.3",
36
- "@nx/eslint": "21.0.0-beta.3",
37
- "@nx/vite": "21.0.0-beta.3",
38
- "@nx/web": "21.0.0-beta.3"
34
+ "@nx/devkit": "21.0.0-beta.5",
35
+ "@nx/js": "21.0.0-beta.5",
36
+ "@nx/eslint": "21.0.0-beta.5",
37
+ "@nx/vite": "21.0.0-beta.5",
38
+ "@nx/web": "21.0.0-beta.5"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -5,8 +5,6 @@ const devkit_1 = require("@nx/devkit");
5
5
  const web_1 = require("@nx/web");
6
6
  const versions_1 = require("../../../utils/versions");
7
7
  const has_rsbuild_plugin_1 = require("../../../utils/has-rsbuild-plugin");
8
- const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
9
- const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
10
8
  async function addE2e(tree, options) {
11
9
  const nxJson = (0, devkit_1.readNxJson)(tree);
12
10
  const hasPlugin = options.bundler === 'rsbuild'
@@ -66,28 +64,13 @@ async function addE2e(tree, options) {
66
64
  devServerTarget: e2eWebServerInfo.e2eDevServerTarget,
67
65
  baseUrl: e2eWebServerInfo.e2eWebServerAddress,
68
66
  jsx: true,
69
- webServerCommands: hasPlugin
70
- ? {
71
- default: e2eWebServerInfo.e2eWebServerCommand,
72
- production: e2eWebServerInfo.e2eCiWebServerCommand,
73
- }
74
- : undefined,
67
+ webServerCommands: {
68
+ default: e2eWebServerInfo.e2eWebServerCommand,
69
+ production: e2eWebServerInfo.e2eCiWebServerCommand,
70
+ },
75
71
  ciWebServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
76
72
  ciBaseUrl: e2eWebServerInfo.e2eCiBaseUrl,
77
73
  });
78
- if (options.addPlugin ||
79
- (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
80
- ? p === '@nx/cypress/plugin'
81
- : p.plugin === '@nx/cypress/plugin')) {
82
- let buildTarget = '^build';
83
- if (hasPlugin) {
84
- const matchingPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, `@nx/vite/plugin`, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `vite.config.${options.js ? 'js' : 'ts'}`));
85
- if (matchingPlugin && typeof matchingPlugin !== 'string') {
86
- buildTarget = `^${matchingPlugin.options?.buildTargetName ?? 'build'}`;
87
- }
88
- }
89
- await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/cypress/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `cypress.config.${options.js ? 'js' : 'ts'}`));
90
- }
91
74
  return e2eTask;
92
75
  }
93
76
  case 'playwright': {
@@ -126,19 +109,6 @@ async function addE2e(tree, options) {
126
109
  webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
127
110
  webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
128
111
  });
129
- if (options.addPlugin ||
130
- (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
131
- ? p === '@nx/playwright/plugin'
132
- : p.plugin === '@nx/playwright/plugin')) {
133
- let buildTarget = '^build';
134
- if (hasPlugin) {
135
- const matchingPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, `@nx/vite/plugin`, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `vite.config.${options.js ? 'js' : 'ts'}`));
136
- if (matchingPlugin && typeof matchingPlugin !== 'string') {
137
- buildTarget = `^${matchingPlugin.options?.buildTargetName ?? 'build'}`;
138
- }
139
- }
140
- await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/playwright/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `playwright.config.ts`));
141
- }
142
112
  return e2eTask;
143
113
  }
144
114
  case 'none':