@nx/vue 23.2.0-beta.2 → 23.2.0-beta.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/dist/src/generators/application/application.js +7 -6
- package/dist/src/generators/application/lib/add-e2e.js +3 -1
- package/dist/src/generators/application/schema.d.ts +4 -0
- package/dist/src/generators/application/schema.json +8 -2
- package/dist/src/generators/library/schema.d.ts +4 -0
- package/dist/src/generators/library/schema.json +8 -2
- package/dist/src/utils/add-linting.d.ts +4 -0
- package/dist/src/utils/add-linting.js +1 -1
- package/package.json +12 -12
|
@@ -4,6 +4,7 @@ exports.applicationGenerator = applicationGenerator;
|
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
7
8
|
const js_1 = require("@nx/js");
|
|
8
9
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
9
10
|
const init_1 = require("../init/init");
|
|
@@ -15,7 +16,7 @@ const add_rsbuild_1 = require("./lib/add-rsbuild");
|
|
|
15
16
|
const create_ts_config_1 = require("../../utils/create-ts-config");
|
|
16
17
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
17
18
|
const assert_supported_vue_version_1 = require("../../utils/assert-supported-vue-version");
|
|
18
|
-
const
|
|
19
|
+
const internal_3 = require("@nx/js/internal");
|
|
19
20
|
function applicationGenerator(tree, options) {
|
|
20
21
|
return applicationGeneratorInternal(tree, {
|
|
21
22
|
addPlugin: false,
|
|
@@ -26,7 +27,7 @@ function applicationGenerator(tree, options) {
|
|
|
26
27
|
async function applicationGeneratorInternal(tree, _options) {
|
|
27
28
|
(0, assert_supported_vue_version_1.assertSupportedVueVersion)(tree);
|
|
28
29
|
const tasks = [];
|
|
29
|
-
const addTsPlugin = (0,
|
|
30
|
+
const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
|
|
30
31
|
tasks.push(await (0, js_1.initGenerator)(tree, {
|
|
31
32
|
..._options,
|
|
32
33
|
tsConfigName: _options.rootProject
|
|
@@ -41,7 +42,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
41
42
|
// If we are using the new TS solution
|
|
42
43
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
43
44
|
if (options.isUsingTsSolutionConfig) {
|
|
44
|
-
await (0,
|
|
45
|
+
await (0, internal_3.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
|
45
46
|
}
|
|
46
47
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
47
48
|
options.addPlugin ??=
|
|
@@ -90,7 +91,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
90
91
|
linter: options.linter ?? 'eslint',
|
|
91
92
|
unitTestRunner: options.unitTestRunner,
|
|
92
93
|
skipPackageJson: options.skipPackageJson,
|
|
93
|
-
|
|
94
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
94
95
|
rootProject: options.rootProject,
|
|
95
96
|
addPlugin: options.addPlugin,
|
|
96
97
|
projectName: options.projectName,
|
|
@@ -106,7 +107,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
106
107
|
if (options.js)
|
|
107
108
|
(0, devkit_1.toJS)(tree);
|
|
108
109
|
if (options.isUsingTsSolutionConfig) {
|
|
109
|
-
(0,
|
|
110
|
+
(0, internal_3.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
|
|
110
111
|
jsx: 'preserve',
|
|
111
112
|
jsxImportSource: 'vue',
|
|
112
113
|
module: 'esnext',
|
|
@@ -116,7 +117,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
116
117
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
117
118
|
: undefined);
|
|
118
119
|
}
|
|
119
|
-
(0,
|
|
120
|
+
(0, internal_3.sortPackageJsonFields)(tree, options.appProjectRoot);
|
|
120
121
|
if (!options.skipFormat)
|
|
121
122
|
await (0, devkit_1.formatFiles)(tree);
|
|
122
123
|
tasks.push(() => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
|
+
const internal_1 = require("@nx/eslint/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const web_1 = require("@nx/web");
|
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -66,6 +67,7 @@ async function addE2e(tree, options) {
|
|
|
66
67
|
devServerTarget: e2eWebServerInfo.e2eDevServerTarget,
|
|
67
68
|
baseUrl: e2eWebServerInfo.e2eWebServerAddress,
|
|
68
69
|
jsx: true,
|
|
70
|
+
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
69
71
|
webServerCommands: {
|
|
70
72
|
default: e2eWebServerInfo.e2eWebServerCommand,
|
|
71
73
|
production: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
@@ -107,7 +109,7 @@ async function addE2e(tree, options) {
|
|
|
107
109
|
directory: 'src',
|
|
108
110
|
js: false,
|
|
109
111
|
linter: options.linter,
|
|
110
|
-
|
|
112
|
+
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
111
113
|
webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
112
114
|
webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
|
|
113
115
|
});
|
|
@@ -15,6 +15,10 @@ export interface Schema {
|
|
|
15
15
|
routing?: boolean;
|
|
16
16
|
js?: boolean;
|
|
17
17
|
strict?: boolean;
|
|
18
|
+
enableTypedLinting?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
21
|
+
*/
|
|
18
22
|
setParserOptionsProject?: boolean;
|
|
19
23
|
skipPackageJson?: boolean;
|
|
20
24
|
rootProject?: boolean;
|
|
@@ -120,11 +120,17 @@
|
|
|
120
120
|
"description": "Whether to enable tsconfig strict mode or not.",
|
|
121
121
|
"default": true
|
|
122
122
|
},
|
|
123
|
-
"
|
|
123
|
+
"enableTypedLinting": {
|
|
124
124
|
"type": "boolean",
|
|
125
|
-
"description": "Whether
|
|
125
|
+
"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.",
|
|
126
126
|
"default": false
|
|
127
127
|
},
|
|
128
|
+
"setParserOptionsProject": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
131
|
+
"default": false,
|
|
132
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
133
|
+
},
|
|
128
134
|
"skipPackageJson": {
|
|
129
135
|
"description": "Do not add dependencies to `package.json`.",
|
|
130
136
|
"type": "boolean",
|
|
@@ -12,6 +12,10 @@ export interface Schema {
|
|
|
12
12
|
name?: string;
|
|
13
13
|
publishable?: boolean;
|
|
14
14
|
routing?: 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
|
skipFormat?: boolean;
|
|
17
21
|
skipPackageJson?: boolean;
|
|
@@ -102,11 +102,17 @@
|
|
|
102
102
|
"description": "Whether to enable tsconfig strict mode or not.",
|
|
103
103
|
"default": true
|
|
104
104
|
},
|
|
105
|
-
"
|
|
105
|
+
"enableTypedLinting": {
|
|
106
106
|
"type": "boolean",
|
|
107
|
-
"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.",
|
|
108
108
|
"default": false
|
|
109
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
|
+
},
|
|
110
116
|
"bundler": {
|
|
111
117
|
"type": "string",
|
|
112
118
|
"description": "The bundler to use. Choosing 'none' means this library is not buildable.",
|
|
@@ -6,6 +6,10 @@ export declare function addLinting(host: Tree, options: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
projectRoot: string;
|
|
8
8
|
unitTestRunner?: 'vitest' | 'none';
|
|
9
|
+
enableTypedLinting?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
12
|
+
*/
|
|
9
13
|
setParserOptionsProject?: boolean;
|
|
10
14
|
skipPackageJson?: boolean;
|
|
11
15
|
rootProject?: boolean;
|
|
@@ -17,7 +17,7 @@ async function addLinting(host, options, projectType) {
|
|
|
17
17
|
],
|
|
18
18
|
unitTestRunner: options.unitTestRunner,
|
|
19
19
|
skipFormat: true,
|
|
20
|
-
|
|
20
|
+
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
21
21
|
rootProject: options.rootProject,
|
|
22
22
|
addPlugin: options.addPlugin,
|
|
23
23
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vue",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.3",
|
|
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": {
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"picomatch": "4.0.4",
|
|
65
65
|
"tslib": "^2.3.0",
|
|
66
|
-
"@nx/devkit": "23.2.0-beta.
|
|
67
|
-
"@nx/
|
|
68
|
-
"@nx/
|
|
69
|
-
"@nx/
|
|
70
|
-
"@nx/
|
|
71
|
-
"@nx/web": "23.2.0-beta.
|
|
66
|
+
"@nx/devkit": "23.2.0-beta.3",
|
|
67
|
+
"@nx/eslint": "23.2.0-beta.3",
|
|
68
|
+
"@nx/js": "23.2.0-beta.3",
|
|
69
|
+
"@nx/vite": "23.2.0-beta.3",
|
|
70
|
+
"@nx/vitest": "23.2.0-beta.3",
|
|
71
|
+
"@nx/web": "23.2.0-beta.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"nx": "23.2.0-beta.
|
|
74
|
+
"nx": "23.2.0-beta.3"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"vue-router": "^4.0.0",
|
|
82
82
|
"vue-tsc": "^2.0.0",
|
|
83
83
|
"@vitejs/plugin-vue": "^5.0.0 || ^6.0.0",
|
|
84
|
-
"@nx/cypress": "23.2.0-beta.
|
|
85
|
-
"@nx/playwright": "23.2.0-beta.
|
|
86
|
-
"@nx/
|
|
87
|
-
"@nx/
|
|
84
|
+
"@nx/cypress": "23.2.0-beta.3",
|
|
85
|
+
"@nx/playwright": "23.2.0-beta.3",
|
|
86
|
+
"@nx/storybook": "23.2.0-beta.3",
|
|
87
|
+
"@nx/rsbuild": "23.2.0-beta.3"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@nx/cypress": {
|