@nx/nuxt 23.2.0-beta.1 → 23.2.0-beta.11
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/README.md +2 -2
- package/dist/src/generators/application/application.js +10 -9
- package/dist/src/generators/application/lib/add-e2e.js +2 -1
- package/dist/src/generators/application/lib/add-vitest.js +5 -3
- package/dist/src/generators/application/lib/normalize-options.js +5 -2
- package/dist/src/generators/application/schema.d.ts +9 -3
- package/dist/src/generators/application/schema.json +15 -6
- package/dist/src/generators/storybook-configuration/schema.d.ts +2 -2
- package/dist/src/generators/storybook-configuration/schema.json +1 -2
- package/dist/src/plugins/plugin.js +1 -2
- package/dist/src/utils/add-linting.d.ts +8 -4
- package/dist/src/utils/add-linting.js +38 -18
- package/dist/src/utils/version-utils.d.ts +1 -1
- package/package.json +18 -9
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
<div style="text-align: center;">
|
|
9
9
|
|
|
10
|
-
[]()
|
|
10
|
+
[](<>)
|
|
11
11
|
[](https://www.npmjs.com/package/nx)
|
|
12
|
-
[]()
|
|
12
|
+
[](<>)
|
|
13
13
|
[](http://commitizen.github.io/cz-cli/)
|
|
14
14
|
[](https://go.nx.dev/community)
|
|
15
15
|
[](https://nx.dev/docs/features/ci-features/sandboxing)
|
|
@@ -4,6 +4,7 @@ exports.applicationGenerator = applicationGenerator;
|
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
|
8
9
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
9
10
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
@@ -19,8 +20,7 @@ const assert_supported_nuxt_version_1 = require("../../utils/assert-supported-nu
|
|
|
19
20
|
const node_child_process_1 = require("node:child_process");
|
|
20
21
|
const node_fs_1 = require("node:fs");
|
|
21
22
|
const node_path_1 = require("node:path");
|
|
22
|
-
const
|
|
23
|
-
const internal_2 = require("@nx/js/internal");
|
|
23
|
+
const internal_3 = require("@nx/js/internal");
|
|
24
24
|
async function applicationGenerator(tree, schema) {
|
|
25
25
|
return await applicationGeneratorInternal(tree, {
|
|
26
26
|
useProjectJson: true,
|
|
@@ -30,7 +30,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
30
30
|
async function applicationGeneratorInternal(tree, schema) {
|
|
31
31
|
(0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(tree);
|
|
32
32
|
const tasks = [];
|
|
33
|
-
const addTsPlugin = (0,
|
|
33
|
+
const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, true, // nuxt always adds plugins
|
|
34
34
|
schema.useTsSolution);
|
|
35
35
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
36
36
|
...schema,
|
|
@@ -42,9 +42,9 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
42
42
|
tasks.push(jsInitTask);
|
|
43
43
|
const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
|
|
44
44
|
const projectOffsetFromRoot = (0, devkit_1.offsetFromRoot)(options.appProjectRoot);
|
|
45
|
-
const onBoardingStatus = await (0,
|
|
45
|
+
const onBoardingStatus = await (0, internal_1.createNxCloudOnboardingURLForWelcomeApp)(tree, options.nxCloudToken);
|
|
46
46
|
const connectCloudUrl = onBoardingStatus === 'unclaimed' &&
|
|
47
|
-
(await (0,
|
|
47
|
+
(await (0, internal_1.getNxCloudAppOnBoardingUrl)(options.nxCloudToken));
|
|
48
48
|
tasks.push(await (0, ensure_dependencies_1.ensureDependencies)(tree, options));
|
|
49
49
|
const packageJson = {
|
|
50
50
|
name: options.importPath,
|
|
@@ -115,14 +115,15 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
115
115
|
// If we are using the new TS solution
|
|
116
116
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
117
117
|
if (options.isUsingTsSolutionConfig) {
|
|
118
|
-
await (0,
|
|
118
|
+
await (0, internal_3.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
|
119
119
|
}
|
|
120
120
|
tasks.push(await (0, add_linting_1.addLinting)(tree, {
|
|
121
121
|
projectName: options.projectName,
|
|
122
122
|
projectRoot: options.appProjectRoot,
|
|
123
|
-
linter: options.linter
|
|
123
|
+
linter: options.linter,
|
|
124
124
|
unitTestRunner: options.unitTestRunner,
|
|
125
125
|
rootProject: options.rootProject,
|
|
126
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
126
127
|
}));
|
|
127
128
|
if (options.unitTestRunner === 'vitest') {
|
|
128
129
|
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
@@ -140,7 +141,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
140
141
|
if (options.js)
|
|
141
142
|
(0, devkit_1.toJS)(tree);
|
|
142
143
|
if (options.isUsingTsSolutionConfig) {
|
|
143
|
-
(0,
|
|
144
|
+
(0, internal_3.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
|
|
144
145
|
jsx: 'preserve',
|
|
145
146
|
jsxImportSource: 'vue',
|
|
146
147
|
module: 'esnext',
|
|
@@ -150,7 +151,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
150
151
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
151
152
|
: undefined);
|
|
152
153
|
}
|
|
153
|
-
(0,
|
|
154
|
+
(0, internal_3.sortPackageJsonFields)(tree, options.appProjectRoot);
|
|
154
155
|
if (!options.skipFormat)
|
|
155
156
|
await (0, devkit_1.formatFiles)(tree);
|
|
156
157
|
tasks.push(() => {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
|
7
8
|
async function addE2e(host, options) {
|
|
@@ -80,7 +81,7 @@ async function addE2e(host, options) {
|
|
|
80
81
|
directory: 'src',
|
|
81
82
|
js: false,
|
|
82
83
|
linter: options.linter,
|
|
83
|
-
|
|
84
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
84
85
|
webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
|
|
85
86
|
webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
86
87
|
addPlugin: true,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addVitest = addVitest;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const internal_1 = require("@nx/eslint/internal");
|
|
5
6
|
const utils_1 = require("../../init/lib/utils");
|
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
|
7
8
|
async function addVitest(tree, options) {
|
|
@@ -29,10 +30,11 @@ async function addVitest(tree, options) {
|
|
|
29
30
|
testEnvironment: 'jsdom',
|
|
30
31
|
imports: [`import vue from '@vitejs/plugin-vue'`],
|
|
31
32
|
plugins: ['vue()'],
|
|
32
|
-
//
|
|
33
|
-
//
|
|
33
|
+
// Only the legacy @nuxt/eslint-config (~0.5.6) leaves .mts out of its
|
|
34
|
+
// parser configuration, so fall back to .ts just for it. A .ts config in
|
|
35
|
+
// a CommonJS package trips Vite's `configLoader: 'native'` warning.
|
|
34
36
|
// See: https://github.com/nuxt/eslint/blob/v0.5.6/packages/eslint-config/src/legacy.ts#L6-L11
|
|
35
|
-
useEsmExtension:
|
|
37
|
+
useEsmExtension: options.linter !== 'eslint' || (0, internal_1.useFlatConfig)(tree),
|
|
36
38
|
}, true, undefined, true);
|
|
37
39
|
(0, devkit_1.updateJson)(tree, `${options.appProjectRoot}/tsconfig.spec.json`, (json) => {
|
|
38
40
|
json.compilerOptions ??= {};
|
|
@@ -39,8 +39,11 @@ async function normalizeOptions(host, options) {
|
|
|
39
39
|
useProjectJson: options.useProjectJson ?? !isUsingTsSolutionConfig,
|
|
40
40
|
useAppDir,
|
|
41
41
|
nuxtMajorVersion,
|
|
42
|
+
unitTestRunner: options.unitTestRunner ?? 'vitest',
|
|
43
|
+
e2eTestRunner: options.e2eTestRunner ?? 'playwright',
|
|
44
|
+
// Resolved here rather than at the `addLinting` call, so every later reader
|
|
45
|
+
// in this generator sees the same value.
|
|
46
|
+
linter: await (0, internal_2.normalizeLinterOption)(host, options.linter),
|
|
42
47
|
};
|
|
43
|
-
normalized.unitTestRunner ??= 'vitest';
|
|
44
|
-
normalized.e2eTestRunner = normalized.e2eTestRunner ?? 'playwright';
|
|
45
48
|
return normalized;
|
|
46
49
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LinterType } from '@nx/js';
|
|
2
2
|
|
|
3
3
|
export interface Schema {
|
|
4
4
|
directory: string;
|
|
5
5
|
name?: string;
|
|
6
|
-
linter?:
|
|
7
|
-
formatter?: 'none' | 'prettier';
|
|
6
|
+
linter?: LinterType;
|
|
7
|
+
formatter?: 'none' | 'prettier' | 'oxfmt';
|
|
8
8
|
skipFormat?: boolean;
|
|
9
9
|
unitTestRunner?: 'vitest' | 'none';
|
|
10
10
|
e2eTestRunner?: 'cypress' | 'playwright' | 'none';
|
|
@@ -12,6 +12,10 @@ export interface Schema {
|
|
|
12
12
|
js?: boolean;
|
|
13
13
|
skipPackageJson?: boolean;
|
|
14
14
|
rootProject?: boolean;
|
|
15
|
+
enableTypedLinting?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
18
|
+
*/
|
|
15
19
|
setParserOptionsProject?: boolean;
|
|
16
20
|
style?: 'css' | 'scss' | 'none';
|
|
17
21
|
nxCloudToken?: string;
|
|
@@ -21,6 +25,8 @@ export interface Schema {
|
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
export interface NormalizedSchema extends Omit<Schema, 'useTsSolution'> {
|
|
28
|
+
// `normalizeOptions` always resolves this, so it is no longer optional.
|
|
29
|
+
linter: LinterType;
|
|
24
30
|
projectName: string;
|
|
25
31
|
appProjectRoot: string;
|
|
26
32
|
importPath: string;
|
|
@@ -29,13 +29,16 @@
|
|
|
29
29
|
"x-priority": "internal"
|
|
30
30
|
},
|
|
31
31
|
"linter": {
|
|
32
|
-
"description": "The tool to use for running lint checks.",
|
|
32
|
+
"description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
|
|
33
33
|
"type": "string",
|
|
34
|
-
"enum": ["eslint", "none"],
|
|
35
|
-
"default": "none",
|
|
36
|
-
"x-prompt": "Which linter would you like to use?",
|
|
34
|
+
"enum": ["eslint", "oxlint", "none"],
|
|
37
35
|
"x-priority": "important"
|
|
38
36
|
},
|
|
37
|
+
"formatter": {
|
|
38
|
+
"description": "The tool to use for code formatting.",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["none", "prettier", "oxfmt"]
|
|
41
|
+
},
|
|
39
42
|
"unitTestRunner": {
|
|
40
43
|
"type": "string",
|
|
41
44
|
"enum": ["vitest", "none"],
|
|
@@ -99,11 +102,17 @@
|
|
|
99
102
|
]
|
|
100
103
|
}
|
|
101
104
|
},
|
|
102
|
-
"
|
|
105
|
+
"enableTypedLinting": {
|
|
103
106
|
"type": "boolean",
|
|
104
|
-
"description": "Whether
|
|
107
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
105
108
|
"default": false
|
|
106
109
|
},
|
|
110
|
+
"setParserOptionsProject": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
113
|
+
"default": false,
|
|
114
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
115
|
+
},
|
|
107
116
|
"useProjectJson": {
|
|
108
117
|
"type": "boolean",
|
|
109
118
|
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinterType } from '@nx/js';
|
|
2
2
|
|
|
3
3
|
export interface Schema {
|
|
4
4
|
project: string;
|
|
@@ -6,7 +6,7 @@ export interface Schema {
|
|
|
6
6
|
generateStories?: boolean;
|
|
7
7
|
js?: boolean;
|
|
8
8
|
tsConfiguration?: boolean;
|
|
9
|
-
linter?:
|
|
9
|
+
linter?: LinterType;
|
|
10
10
|
ignorePaths?: string[];
|
|
11
11
|
configureStaticServe?: boolean;
|
|
12
12
|
}
|
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
7
6
|
const js_1 = require("@nx/js");
|
|
8
7
|
const path_1 = require("path");
|
|
9
8
|
const fs_1 = require("fs");
|
|
10
9
|
const executor_utils_1 = require("../utils/executor-utils");
|
|
11
10
|
const internal_2 = require("@nx/js/internal");
|
|
12
|
-
const cachePath = (0, path_1.join)(
|
|
11
|
+
const cachePath = (0, path_1.join)(internal_1.workspaceDataDirectory, 'nuxt.hash');
|
|
13
12
|
const targetsCache = new internal_1.PluginCache(cachePath);
|
|
14
13
|
exports.createNodes = [
|
|
15
14
|
'**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { GeneratorCallback } from '@nx/devkit';
|
|
1
|
+
import { LinterType } from '@nx/js';
|
|
2
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
4
3
|
export declare function addLinting(host: Tree, options: {
|
|
5
|
-
linter:
|
|
4
|
+
linter: LinterType;
|
|
6
5
|
projectName: string;
|
|
7
6
|
projectRoot: string;
|
|
8
7
|
unitTestRunner?: 'vitest' | 'none';
|
|
9
8
|
rootProject?: boolean;
|
|
9
|
+
enableTypedLinting?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
12
|
+
*/
|
|
13
|
+
setParserOptionsProject?: boolean;
|
|
10
14
|
}): Promise<GeneratorCallback>;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addLinting = addLinting;
|
|
4
|
-
const eslint_1 = require("@nx/eslint");
|
|
5
|
-
const path_1 = require("nx/src/utils/path");
|
|
6
4
|
const devkit_1 = require("@nx/devkit");
|
|
7
5
|
const internal_1 = require("@nx/eslint/internal");
|
|
8
6
|
const versions_1 = require("./versions");
|
|
7
|
+
const internal_2 = require("@nx/js/internal");
|
|
9
8
|
async function addLinting(host, options) {
|
|
10
9
|
const tasks = [];
|
|
10
|
+
tasks.push(await (0, internal_2.addLintingToProject)(host, {
|
|
11
|
+
oxlintPlugins: ['vue'],
|
|
12
|
+
linter: options.linter,
|
|
13
|
+
project: options.projectName,
|
|
14
|
+
tsConfigPaths: [(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.json')],
|
|
15
|
+
unitTestRunner: options.unitTestRunner,
|
|
16
|
+
rootProject: options.rootProject,
|
|
17
|
+
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
18
|
+
addPlugin: true,
|
|
19
|
+
}));
|
|
20
|
+
// Everything below configures ESLint — predefined configs, `extends`, ignore
|
|
21
|
+
// entries — which have no equivalent in other linters.
|
|
11
22
|
if (options.linter === 'eslint') {
|
|
12
|
-
const
|
|
13
|
-
linter: options.linter,
|
|
14
|
-
project: options.projectName,
|
|
15
|
-
tsConfigPaths: [(0, path_1.joinPathFragments)(options.projectRoot, 'tsconfig.json')],
|
|
16
|
-
unitTestRunner: options.unitTestRunner,
|
|
17
|
-
skipFormat: true,
|
|
18
|
-
rootProject: options.rootProject,
|
|
19
|
-
addPlugin: true,
|
|
20
|
-
});
|
|
21
|
-
tasks.push(lintTask);
|
|
23
|
+
const enableTypedLinting = (0, internal_1.isTypedLintingEnabled)(options);
|
|
22
24
|
const isFlatConfig = (0, internal_1.useFlatConfig)(host);
|
|
23
25
|
// Version-aware dependencies:
|
|
24
26
|
// - Flat config (v4+): use @nuxt/eslint-config ^1.10.0 with createConfigForNuxt
|
|
@@ -30,8 +32,11 @@ async function addLinting(host, options) {
|
|
|
30
32
|
};
|
|
31
33
|
if ((0, internal_1.isEslintConfigSupported)(host, options.projectRoot)) {
|
|
32
34
|
if (isFlatConfig) {
|
|
33
|
-
// For flat config: Generate eslint.config.mjs using createConfigForNuxt
|
|
34
|
-
|
|
35
|
+
// For flat config: Generate eslint.config.mjs using createConfigForNuxt.
|
|
36
|
+
// Pass `enableTypedLinting` so the projectService block is inlined into
|
|
37
|
+
// the template (the file's top-level export is a call expression chain,
|
|
38
|
+
// not an array literal, so post-hoc AST insertion doesn't work).
|
|
39
|
+
generateNuxtFlatEslintConfig(host, options.projectRoot, enableTypedLinting);
|
|
35
40
|
}
|
|
36
41
|
else {
|
|
37
42
|
// For legacy: Use extends with the old @nuxt/eslint-config
|
|
@@ -54,17 +59,32 @@ async function addLinting(host, options) {
|
|
|
54
59
|
* Generates a flat ESLint config for Nuxt using createConfigForNuxt from @nuxt/eslint-config/flat.
|
|
55
60
|
* This is the recommended approach for Nuxt v4+ and ESLint flat config.
|
|
56
61
|
*/
|
|
57
|
-
function generateNuxtFlatEslintConfig(tree, projectRoot) {
|
|
62
|
+
function generateNuxtFlatEslintConfig(tree, projectRoot, enableTypedLinting) {
|
|
58
63
|
const eslintFile = (0, internal_1.findEslintFile)(tree, projectRoot);
|
|
59
64
|
if (!eslintFile)
|
|
60
65
|
return;
|
|
61
|
-
const configPath = (0,
|
|
66
|
+
const configPath = (0, devkit_1.joinPathFragments)(projectRoot, eslintFile);
|
|
62
67
|
const isMjs = eslintFile.endsWith('.mjs');
|
|
63
68
|
const isCjs = eslintFile.endsWith('.cjs');
|
|
64
69
|
// Determine the relative path to root config
|
|
65
70
|
const depth = projectRoot.split('/').filter(Boolean).length;
|
|
66
71
|
const rootConfigRelativePath = depth > 0 ? '../'.repeat(depth) : './';
|
|
67
72
|
let configContent;
|
|
73
|
+
const typedLintingBlock = enableTypedLinting
|
|
74
|
+
? `
|
|
75
|
+
{
|
|
76
|
+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],
|
|
77
|
+
languageOptions: {
|
|
78
|
+
parserOptions: {
|
|
79
|
+
projectService: true,
|
|
80
|
+
// \`projectService\` conflicts with a \`parserOptions.project\` set by any config
|
|
81
|
+
// merged into this one. Remove this once you know none of them set it.
|
|
82
|
+
project: null,
|
|
83
|
+
tsconfigRootDir: ${isCjs ? '__dirname' : 'import.meta.dirname'},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},`
|
|
87
|
+
: '';
|
|
68
88
|
if (isCjs) {
|
|
69
89
|
// CJS flat config
|
|
70
90
|
configContent = `const { createConfigForNuxt } = require('@nuxt/eslint-config/flat');
|
|
@@ -76,7 +96,7 @@ module.exports = createConfigForNuxt({
|
|
|
76
96
|
typescript: true,
|
|
77
97
|
},
|
|
78
98
|
})${projectRoot !== '.' ? `\n .prepend(...baseConfig)` : ''}
|
|
79
|
-
.append(
|
|
99
|
+
.append(${typedLintingBlock}
|
|
80
100
|
{
|
|
81
101
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],
|
|
82
102
|
rules: {
|
|
@@ -100,7 +120,7 @@ export default createConfigForNuxt({
|
|
|
100
120
|
typescript: true,
|
|
101
121
|
},
|
|
102
122
|
})${projectRoot !== '.' ? `\n .prepend(...baseConfig)` : ''}
|
|
103
|
-
.append(
|
|
123
|
+
.append(${typedLintingBlock}
|
|
104
124
|
{
|
|
105
125
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],
|
|
106
126
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.11",
|
|
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": {
|
|
@@ -60,20 +60,23 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"tslib": "^2.3.0",
|
|
62
62
|
"semver": "^7.6.3",
|
|
63
|
-
"@nx/devkit": "23.2.0-beta.
|
|
64
|
-
"@nx/
|
|
65
|
-
"@nx/
|
|
66
|
-
"@nx/
|
|
67
|
-
"@nx/
|
|
68
|
-
"@nx/vitest": "23.2.0-beta.
|
|
63
|
+
"@nx/devkit": "23.2.0-beta.11",
|
|
64
|
+
"@nx/js": "23.2.0-beta.11",
|
|
65
|
+
"@nx/vite": "23.2.0-beta.11",
|
|
66
|
+
"@nx/vue": "23.2.0-beta.11",
|
|
67
|
+
"@nx/eslint": "23.2.0-beta.11",
|
|
68
|
+
"@nx/vitest": "23.2.0-beta.11"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"
|
|
71
|
+
"nuxt": "^3.21.10",
|
|
72
|
+
"nx": "23.2.0-beta.11"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
75
|
"nuxt": ">=3.0.0 <5.0.0",
|
|
75
76
|
"@nuxt/schema": "^3.0.0 || ^4.0.0",
|
|
76
|
-
"@nuxt/kit": "^3.0.0 || ^4.0.0"
|
|
77
|
+
"@nuxt/kit": "^3.0.0 || ^4.0.0",
|
|
78
|
+
"@nx/cypress": "23.2.0-beta.11",
|
|
79
|
+
"@nx/playwright": "23.2.0-beta.11"
|
|
77
80
|
},
|
|
78
81
|
"peerDependenciesMeta": {
|
|
79
82
|
"nuxt": {
|
|
@@ -84,6 +87,12 @@
|
|
|
84
87
|
},
|
|
85
88
|
"@nuxt/kit": {
|
|
86
89
|
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@nx/cypress": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@nx/playwright": {
|
|
95
|
+
"optional": true
|
|
87
96
|
}
|
|
88
97
|
},
|
|
89
98
|
"publishConfig": {
|