@nx/nuxt 20.3.1 → 20.3.3
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/LICENSE +1 -1
- package/package.json +6 -6
- package/src/generators/application/application.js +18 -11
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.3",
|
|
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": "20.3.
|
|
35
|
-
"@nx/js": "20.3.
|
|
36
|
-
"@nx/eslint": "20.3.
|
|
37
|
-
"@nx/vue": "20.3.
|
|
38
|
-
"@nx/vite": "20.3.
|
|
34
|
+
"@nx/devkit": "20.3.3",
|
|
35
|
+
"@nx/js": "20.3.3",
|
|
36
|
+
"@nx/eslint": "20.3.3",
|
|
37
|
+
"@nx/vue": "20.3.3",
|
|
38
|
+
"@nx/vite": "20.3.3",
|
|
39
39
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -18,6 +18,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
18
18
|
const onboarding_1 = require("nx/src/nx-cloud/utilities/onboarding");
|
|
19
19
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
20
20
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
21
|
+
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
21
22
|
async function applicationGenerator(tree, schema) {
|
|
22
23
|
const tasks = [];
|
|
23
24
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
@@ -108,6 +109,23 @@ async function applicationGenerator(tree, schema) {
|
|
|
108
109
|
tasks.push(await (0, add_e2e_1.addE2e)(tree, options));
|
|
109
110
|
if (options.js)
|
|
110
111
|
(0, devkit_1.toJS)(tree);
|
|
112
|
+
if (options.isUsingTsSolutionConfig) {
|
|
113
|
+
(0, ts_solution_setup_1.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
|
|
114
|
+
jsx: 'preserve',
|
|
115
|
+
jsxImportSource: 'vue',
|
|
116
|
+
module: 'esnext',
|
|
117
|
+
moduleResolution: 'bundler',
|
|
118
|
+
resolveJsonModule: true,
|
|
119
|
+
}, options.linter === 'eslint'
|
|
120
|
+
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
121
|
+
: undefined);
|
|
122
|
+
}
|
|
123
|
+
// If we are using the new TS solution
|
|
124
|
+
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
125
|
+
if (options.isUsingTsSolutionConfig) {
|
|
126
|
+
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
|
127
|
+
}
|
|
128
|
+
(0, sort_fields_1.sortPackageJsonFields)(tree, options.appProjectRoot);
|
|
111
129
|
if (!options.skipFormat)
|
|
112
130
|
await (0, devkit_1.formatFiles)(tree);
|
|
113
131
|
tasks.push(() => {
|
|
@@ -121,17 +139,6 @@ async function applicationGenerator(tree, schema) {
|
|
|
121
139
|
console.error(`Failed to run \`nuxi prepare\` in "${options.appProjectRoot}". Please run the command manually.`);
|
|
122
140
|
}
|
|
123
141
|
});
|
|
124
|
-
if (options.isUsingTsSolutionConfig) {
|
|
125
|
-
(0, ts_solution_setup_1.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
|
|
126
|
-
jsx: 'preserve',
|
|
127
|
-
jsxImportSource: 'vue',
|
|
128
|
-
module: 'esnext',
|
|
129
|
-
moduleResolution: 'bundler',
|
|
130
|
-
resolveJsonModule: true,
|
|
131
|
-
}, options.linter === 'eslint'
|
|
132
|
-
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
133
|
-
: undefined);
|
|
134
|
-
}
|
|
135
142
|
tasks.push(() => {
|
|
136
143
|
(0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
|
|
137
144
|
});
|