@nx/nuxt 24.0.0-beta.2 → 24.0.0-beta.4
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/dist/src/generators/application/application.js +1 -2
- package/dist/src/generators/application/files/app-dir/nuxt.config.ts__tmpl__ +2 -4
- package/dist/src/generators/application/files/base/nuxt.config.ts__tmpl__ +2 -4
- package/dist/src/generators/application/lib/add-e2e.js +1 -3
- package/dist/src/generators/application/lib/add-vitest.js +0 -1
- package/dist/src/generators/application/lib/ensure-dependencies.js +2 -1
- package/dist/src/generators/storybook-configuration/configuration.js +1 -4
- package/dist/src/utils/add-linting.js +0 -1
- package/package.json +10 -10
|
@@ -29,8 +29,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
29
29
|
async function applicationGeneratorInternal(tree, schema) {
|
|
30
30
|
(0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(tree);
|
|
31
31
|
const tasks = [];
|
|
32
|
-
const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree,
|
|
33
|
-
schema.useTsSolution);
|
|
32
|
+
const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, schema.useTsSolution);
|
|
34
33
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
35
34
|
...schema,
|
|
36
35
|
tsConfigName: schema.rootProject ? 'tsconfig.json' : 'tsconfig.base.json',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
2
2
|
import { defineNuxtConfig } from 'nuxt/config';
|
|
3
3
|
|
|
4
4
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
@@ -22,8 +22,6 @@ export default defineNuxtConfig({
|
|
|
22
22
|
css: ['~/assets/css/styles.<%= style %>'],
|
|
23
23
|
<%_ } _%>
|
|
24
24
|
vite: {
|
|
25
|
-
plugins: [
|
|
26
|
-
nxViteTsPaths()
|
|
27
|
-
],
|
|
25
|
+
plugins: [tsconfigPaths({ loose: true })],
|
|
28
26
|
},
|
|
29
27
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
2
2
|
import { defineNuxtConfig } from 'nuxt/config';
|
|
3
3
|
|
|
4
4
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
@@ -23,8 +23,6 @@ export default defineNuxtConfig({
|
|
|
23
23
|
css: ['~/assets/css/styles.<%= style %>'],
|
|
24
24
|
<%_ } _%>
|
|
25
25
|
vite: {
|
|
26
|
-
plugins: [
|
|
27
|
-
nxViteTsPaths()
|
|
28
|
-
],
|
|
26
|
+
plugins: [tsconfigPaths({ loose: true })],
|
|
29
27
|
},
|
|
30
28
|
});
|
|
@@ -46,7 +46,6 @@ async function addE2e(host, options) {
|
|
|
46
46
|
baseUrl: e2eWebServerInfo.e2eWebServerAddress,
|
|
47
47
|
ciBaseUrl: e2eWebServerInfo.e2eCiBaseUrl,
|
|
48
48
|
jsx: true,
|
|
49
|
-
addPlugin: true,
|
|
50
49
|
});
|
|
51
50
|
return e2eTask;
|
|
52
51
|
}
|
|
@@ -84,7 +83,6 @@ async function addE2e(host, options) {
|
|
|
84
83
|
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
85
84
|
webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
|
|
86
85
|
webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
87
|
-
addPlugin: true,
|
|
88
86
|
});
|
|
89
87
|
return e2eTask;
|
|
90
88
|
}
|
|
@@ -108,5 +106,5 @@ async function getNuxtE2EWebServerInfo(tree, projectName, configFilePath) {
|
|
|
108
106
|
defaultE2EWebServerAddress: `http://localhost:${e2ePort}`,
|
|
109
107
|
defaultE2ECiBaseUrl: 'http://localhost:4200',
|
|
110
108
|
defaultE2EPort: e2ePort,
|
|
111
|
-
}
|
|
109
|
+
});
|
|
112
110
|
}
|
|
@@ -9,7 +9,8 @@ const version_utils_1 = require("../../../utils/version-utils");
|
|
|
9
9
|
async function ensureDependencies(host, options) {
|
|
10
10
|
const nuxtVersions = await (0, version_utils_1.getNuxtDependenciesVersionsToInstall)(host);
|
|
11
11
|
const devDependencies = {
|
|
12
|
-
'
|
|
12
|
+
'vite-tsconfig-paths': '~4.3.2',
|
|
13
|
+
'@nx/vite': versions_1.nxVersion, // needed for @nx/vite/plugin
|
|
13
14
|
'@nuxt/devtools': nuxtVersions.nuxtDevtools,
|
|
14
15
|
'@nuxt/kit': nuxtVersions.nuxtKit,
|
|
15
16
|
'@nuxt/schema': nuxtVersions.nuxtSchema,
|
|
@@ -17,10 +17,7 @@ async function storybookConfigurationGenerator(tree, options) {
|
|
|
17
17
|
: sourceRoot?.endsWith('/src')
|
|
18
18
|
? 'src'
|
|
19
19
|
: 'src'; // default to src for backward compatibility
|
|
20
|
-
const storybookConfigurationGenerator = await (0, vue_1.storybookConfigurationGenerator)(tree,
|
|
21
|
-
...options,
|
|
22
|
-
addPlugin: true,
|
|
23
|
-
});
|
|
20
|
+
const storybookConfigurationGenerator = await (0, vue_1.storybookConfigurationGenerator)(tree, options);
|
|
24
21
|
// Default tsConfiguration to true to match schema default
|
|
25
22
|
const tsConfiguration = options.tsConfiguration ?? true;
|
|
26
23
|
// Write the preview file after the base storybook configuration is set up
|
|
@@ -15,7 +15,6 @@ async function addLinting(host, options) {
|
|
|
15
15
|
unitTestRunner: options.unitTestRunner,
|
|
16
16
|
rootProject: options.rootProject,
|
|
17
17
|
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
18
|
-
addPlugin: true,
|
|
19
18
|
}));
|
|
20
19
|
// Everything below configures ESLint — predefined configs, `extends`, ignore
|
|
21
20
|
// entries — which have no equivalent in other linters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.4",
|
|
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": {
|
|
@@ -59,24 +59,24 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"tslib": "^2.3.0",
|
|
62
|
-
"@nx/devkit": "24.0.0-beta.
|
|
63
|
-
"@nx/js": "24.0.0-beta.
|
|
64
|
-
"@nx/eslint": "24.0.0-beta.
|
|
65
|
-
"@nx/vue": "24.0.0-beta.
|
|
66
|
-
"@nx/vite": "24.0.0-beta.
|
|
67
|
-
"@nx/vitest": "24.0.0-beta.
|
|
62
|
+
"@nx/devkit": "24.0.0-beta.4",
|
|
63
|
+
"@nx/js": "24.0.0-beta.4",
|
|
64
|
+
"@nx/eslint": "24.0.0-beta.4",
|
|
65
|
+
"@nx/vue": "24.0.0-beta.4",
|
|
66
|
+
"@nx/vite": "24.0.0-beta.4",
|
|
67
|
+
"@nx/vitest": "24.0.0-beta.4",
|
|
68
68
|
"semver": "^7.6.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"nuxt": "^3.21.10",
|
|
72
|
-
"nx": "24.0.0-beta.
|
|
72
|
+
"nx": "24.0.0-beta.4"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"nuxt": ">=3.0.0 <5.0.0",
|
|
76
76
|
"@nuxt/schema": "^3.0.0 || ^4.0.0",
|
|
77
77
|
"@nuxt/kit": "^3.0.0 || ^4.0.0",
|
|
78
|
-
"@nx/cypress": "24.0.0-beta.
|
|
79
|
-
"@nx/playwright": "24.0.0-beta.
|
|
78
|
+
"@nx/cypress": "24.0.0-beta.4",
|
|
79
|
+
"@nx/playwright": "24.0.0-beta.4"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"nuxt": {
|