@nx/vue 17.0.0 → 17.0.2

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": "17.0.0",
3
+ "version": "17.0.2",
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 Jest, 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": {
@@ -30,12 +30,11 @@
30
30
  "dependencies": {
31
31
  "minimatch": "3.0.5",
32
32
  "tslib": "^2.3.0",
33
- "@nx/devkit": "17.0.0",
34
- "@nx/jest": "17.0.0",
35
- "@nx/js": "17.0.0",
36
- "@nx/eslint": "17.0.0",
37
- "@nx/vite": "17.0.0",
38
- "@nx/web": "17.0.0",
33
+ "@nx/devkit": "17.0.2",
34
+ "@nx/js": "17.0.2",
35
+ "@nx/eslint": "17.0.2",
36
+ "@nx/vite": "17.0.2",
37
+ "@nx/web": "17.0.2",
39
38
  "@phenomnomnominal/tsquery": "~5.0.1"
40
39
  },
41
40
  "publishConfig": {
@@ -6,24 +6,34 @@ const web_1 = require("@nx/web");
6
6
  const versions_1 = require("../../../utils/versions");
7
7
  async function addE2e(tree, options) {
8
8
  switch (options.e2eTestRunner) {
9
- case 'cypress':
9
+ case 'cypress': {
10
10
  (0, web_1.webStaticServeGenerator)(tree, {
11
11
  buildTarget: `${options.projectName}:build`,
12
12
  targetName: 'serve-static',
13
13
  });
14
- const { cypressProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
15
- return await cypressProjectGenerator(tree, {
14
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
15
+ (0, devkit_1.addProjectConfiguration)(tree, options.e2eProjectName, {
16
+ projectType: 'application',
17
+ root: options.e2eProjectRoot,
18
+ sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
19
+ targets: {},
20
+ tags: [],
21
+ implicitDependencies: [options.projectName],
22
+ });
23
+ return await configurationGenerator(tree, {
16
24
  ...options,
17
- name: options.e2eProjectName,
18
- directory: options.e2eProjectRoot,
19
- projectNameAndRootFormat: 'as-provided',
20
- project: options.projectName,
25
+ project: options.e2eProjectName,
26
+ directory: 'src',
21
27
  bundler: 'vite',
22
28
  skipFormat: true,
29
+ devServerTarget: `${options.projectName}:serve`,
30
+ jsx: true,
23
31
  });
24
- case 'playwright':
32
+ }
33
+ case 'playwright': {
25
34
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', versions_1.nxVersion);
26
35
  (0, devkit_1.addProjectConfiguration)(tree, options.e2eProjectName, {
36
+ projectType: 'application',
27
37
  root: options.e2eProjectRoot,
28
38
  sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
29
39
  targets: {},
@@ -40,6 +50,7 @@ async function addE2e(tree, options) {
40
50
  webServerCommand: `${(0, devkit_1.getPackageManagerCommand)().exec} nx serve ${options.name}`,
41
51
  webServerAddress: 'http://localhost:4200',
42
52
  });
53
+ }
43
54
  case 'none':
44
55
  default:
45
56
  return () => { };
@@ -110,5 +110,5 @@
110
110
  "x-prompt": "What unit test runner should be used?"
111
111
  }
112
112
  },
113
- "required": ["name"]
113
+ "required": ["name", "project"]
114
114
  }
@@ -8,13 +8,13 @@ function updateDependencies(host, schema) {
8
8
  (0, devkit_1.removeDependenciesFromPackageJson)(host, ['@nx/vue'], []);
9
9
  let dependencies = {
10
10
  vue: versions_1.vueVersion,
11
- 'vue-tsc': versions_1.vueTscVersion,
12
11
  };
13
12
  let devDependencies = {
14
13
  '@nx/vue': versions_1.nxVersion,
15
14
  '@vue/tsconfig': versions_1.vueTsconfigVersion,
16
15
  '@vue/test-utils': versions_1.vueTestUtilsVersion,
17
16
  '@vitejs/plugin-vue': versions_1.vitePluginVueVersion,
17
+ 'vue-tsc': versions_1.vueTscVersion,
18
18
  };
19
19
  if (schema.routing) {
20
20
  dependencies['vue-router'] = versions_1.vueRouterVersion;
@@ -98,7 +98,7 @@
98
98
  "component": {
99
99
  "type": "boolean",
100
100
  "description": "Generate a default component.",
101
- "default": true
101
+ "default": false
102
102
  },
103
103
  "js": {
104
104
  "type": "boolean",
@@ -12,7 +12,7 @@ function createTsConfig(host, projectRoot, type, options, relativePathToRootTsCo
12
12
  strict: options.strict,
13
13
  jsx: 'preserve',
14
14
  jsxImportSource: 'vue',
15
- moduleResolution: 'bundler',
15
+ moduleResolution: 'node',
16
16
  resolveJsonModule: true,
17
17
  verbatimModuleSyntax: options.unitTestRunner !== 'jest',
18
18
  },