@nx/nuxt 19.2.1 → 19.3.0-beta.0
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/nuxt",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nuxt plugin for Nx contains executors and generators for managing Nuxt 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
|
"tslib": "^2.3.0",
|
|
33
33
|
"@nuxt/kit": "^3.10.0",
|
|
34
|
-
"@nx/devkit": "19.
|
|
35
|
-
"@nx/js": "19.
|
|
36
|
-
"@nx/eslint": "19.
|
|
37
|
-
"@nx/vue": "19.
|
|
38
|
-
"@nx/vite": "19.
|
|
34
|
+
"@nx/devkit": "19.3.0-beta.0",
|
|
35
|
+
"@nx/js": "19.3.0-beta.0",
|
|
36
|
+
"@nx/eslint": "19.3.0-beta.0",
|
|
37
|
+
"@nx/vue": "19.3.0-beta.0",
|
|
38
|
+
"@nx/vite": "19.3.0-beta.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {},
|
|
41
41
|
"publishConfig": {
|
|
@@ -26,7 +26,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
26
26
|
});
|
|
27
27
|
tasks.push(jsInitTask);
|
|
28
28
|
tasks.push((0, ensure_dependencies_1.ensureDependencies)(tree, options));
|
|
29
|
-
(0, devkit_1.addProjectConfiguration)(tree, options.
|
|
29
|
+
(0, devkit_1.addProjectConfiguration)(tree, options.name, {
|
|
30
30
|
root: options.appProjectRoot,
|
|
31
31
|
projectType: 'application',
|
|
32
32
|
sourceRoot: `${options.appProjectRoot}/src`,
|
|
@@ -12,7 +12,7 @@ async function addVitest(tree, options) {
|
|
|
12
12
|
: p.plugin === '@nx/nuxt/plugin');
|
|
13
13
|
const { createOrEditViteConfig, vitestGenerator } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
14
14
|
const vitestTask = await vitestGenerator(tree, {
|
|
15
|
-
project: options.
|
|
15
|
+
project: options.name,
|
|
16
16
|
uiFramework: 'none',
|
|
17
17
|
coverageProvider: 'v8',
|
|
18
18
|
skipFormat: true,
|
|
@@ -21,7 +21,7 @@ async function addVitest(tree, options) {
|
|
|
21
21
|
addPlugin: true,
|
|
22
22
|
}, hasPlugin);
|
|
23
23
|
createOrEditViteConfig(tree, {
|
|
24
|
-
project: options.
|
|
24
|
+
project: options.name,
|
|
25
25
|
includeLib: false,
|
|
26
26
|
includeVitest: true,
|
|
27
27
|
testEnvironment: 'jsdom',
|
package/src/plugins/plugin.js
CHANGED
|
@@ -130,7 +130,7 @@ async function getInfoFromNuxtConfig(configFilePath, context, projectRoot) {
|
|
|
130
130
|
function getOutputs(nuxtConfig, projectRoot) {
|
|
131
131
|
const buildOutputPath = normalizeOutputPath(nuxtConfig?.buildDir, projectRoot);
|
|
132
132
|
return {
|
|
133
|
-
buildOutputs: [buildOutputPath
|
|
133
|
+
buildOutputs: [buildOutputPath],
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
function normalizeOutputPath(outputPath, projectRoot) {
|