@nx/vue 22.1.0-beta.5 → 22.1.0-beta.7
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": "22.1.0-beta.
|
|
3
|
+
"version": "22.1.0-beta.7",
|
|
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": {
|
|
@@ -29,17 +29,18 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "22.1.0-beta.
|
|
33
|
-
"@nx/eslint": "22.1.0-beta.
|
|
34
|
-
"@nx/js": "22.1.0-beta.
|
|
35
|
-
"@nx/vite": "22.1.0-beta.
|
|
36
|
-
"@nx/
|
|
32
|
+
"@nx/devkit": "22.1.0-beta.7",
|
|
33
|
+
"@nx/eslint": "22.1.0-beta.7",
|
|
34
|
+
"@nx/js": "22.1.0-beta.7",
|
|
35
|
+
"@nx/vite": "22.1.0-beta.7",
|
|
36
|
+
"@nx/vitest": "22.1.0-beta.7",
|
|
37
|
+
"@nx/web": "22.1.0-beta.7",
|
|
37
38
|
"picomatch": "4.0.2",
|
|
38
39
|
"semver": "^7.6.3",
|
|
39
40
|
"tslib": "^2.3.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"nx": "22.1.0-beta.
|
|
43
|
+
"nx": "22.1.0-beta.7"
|
|
43
44
|
},
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/application/lib/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,IAAI,
|
|
1
|
+
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/application/lib/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAmC5B;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,gCAgCpE"}
|
|
@@ -4,6 +4,7 @@ exports.addVite = addVite;
|
|
|
4
4
|
exports.addVitest = addVitest;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const vite_1 = require("@nx/vite");
|
|
7
|
+
const versions_1 = require("../../../utils/versions");
|
|
7
8
|
async function addVite(tree, options) {
|
|
8
9
|
// Set up build target (and test target if using vitest)
|
|
9
10
|
const viteTask = await (0, vite_1.viteConfigurationGenerator)(tree, {
|
|
@@ -35,7 +36,8 @@ async function addVite(tree, options) {
|
|
|
35
36
|
}
|
|
36
37
|
async function addVitest(tree, options) {
|
|
37
38
|
const tasks = [];
|
|
38
|
-
const
|
|
39
|
+
const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
40
|
+
const vitestTask = await configurationGenerator(tree, {
|
|
39
41
|
uiFramework: 'none',
|
|
40
42
|
project: options.projectName,
|
|
41
43
|
coverageProvider: 'v8',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/library/lib/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,IAAI,EAGL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/library/lib/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,IAAI,EAGL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAwE5B"}
|
|
@@ -33,9 +33,10 @@ async function addVite(tree, options) {
|
|
|
33
33
|
if (options.unitTestRunner === 'vitest' &&
|
|
34
34
|
options.bundler !== 'vite' // tests are already configured if bundler is vite
|
|
35
35
|
) {
|
|
36
|
-
const {
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
37
|
+
const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
38
|
+
const vitestTask = await configurationGenerator(tree, {
|
|
39
|
+
uiFramework: 'vue',
|
|
39
40
|
project: options.projectName,
|
|
40
41
|
coverageProvider: 'v8',
|
|
41
42
|
inSourceTests: options.inSourceTests,
|