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