@nx/nuxt 19.4.3 → 19.5.0-beta.1
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/package.json +6 -6
- package/src/generators/application/application.js +1 -2
- package/src/generators/application/lib/add-e2e.js +1 -2
- package/src/generators/application/lib/add-vitest.js +1 -2
- package/src/generators/application/lib/ensure-dependencies.js +1 -2
- package/src/generators/application/lib/normalize-options.js +2 -3
- package/src/generators/init/init.js +1 -2
- package/src/generators/init/lib/utils.js +3 -4
- package/src/generators/storybook-configuration/configuration.js +1 -2
- package/src/migrations/update-18-1-0/add-include-tsconfig.js +1 -1
- package/src/utils/add-linting.js +1 -2
- package/src/utils/create-ts-config.js +1 -2
- package/src/utils/executor-utils.js +1 -2
- package/src/utils/update-gitignore.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.0-beta.1",
|
|
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": "19.
|
|
35
|
-
"@nx/js": "19.
|
|
36
|
-
"@nx/eslint": "19.
|
|
37
|
-
"@nx/vue": "19.
|
|
38
|
-
"@nx/vite": "19.
|
|
34
|
+
"@nx/devkit": "19.5.0-beta.1",
|
|
35
|
+
"@nx/js": "19.5.0-beta.1",
|
|
36
|
+
"@nx/eslint": "19.5.0-beta.1",
|
|
37
|
+
"@nx/vue": "19.5.0-beta.1",
|
|
38
|
+
"@nx/vite": "19.5.0-beta.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {},
|
|
41
41
|
"publishConfig": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applicationGenerator =
|
|
3
|
+
exports.applicationGenerator = applicationGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const init_1 = require("../init/init");
|
|
6
6
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
@@ -88,5 +88,4 @@ async function applicationGenerator(tree, schema) {
|
|
|
88
88
|
});
|
|
89
89
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
90
90
|
}
|
|
91
|
-
exports.applicationGenerator = applicationGenerator;
|
|
92
91
|
exports.default = applicationGenerator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addE2e =
|
|
3
|
+
exports.addE2e = addE2e;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
|
6
6
|
async function addE2e(host, options) {
|
|
@@ -53,4 +53,3 @@ async function addE2e(host, options) {
|
|
|
53
53
|
}
|
|
54
54
|
return () => { };
|
|
55
55
|
}
|
|
56
|
-
exports.addE2e = addE2e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addVitest =
|
|
3
|
+
exports.addVitest = addVitest;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const utils_1 = require("../../init/lib/utils");
|
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -36,4 +36,3 @@ async function addVitest(tree, options) {
|
|
|
36
36
|
});
|
|
37
37
|
return vitestTask;
|
|
38
38
|
}
|
|
39
|
-
exports.addVitest = addVitest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureDependencies =
|
|
3
|
+
exports.ensureDependencies = ensureDependencies;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const vue_1 = require("@nx/vue");
|
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -24,4 +24,3 @@ function ensureDependencies(host, options) {
|
|
|
24
24
|
}
|
|
25
25
|
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies);
|
|
26
26
|
}
|
|
27
|
-
exports.ensureDependencies = ensureDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.normalizeDirectory = normalizeDirectory;
|
|
4
|
+
exports.normalizeOptions = normalizeOptions;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
7
|
function normalizeDirectory(options) {
|
|
@@ -10,7 +11,6 @@ function normalizeDirectory(options) {
|
|
|
10
11
|
? `${(0, devkit_1.names)(projectDirectory).fileName}/${(0, devkit_1.names)(options.name).fileName}`
|
|
11
12
|
: (0, devkit_1.names)(options.name).fileName;
|
|
12
13
|
}
|
|
13
|
-
exports.normalizeDirectory = normalizeDirectory;
|
|
14
14
|
async function normalizeOptions(host, options, callingGenerator = '@nx/nuxt:application') {
|
|
15
15
|
const { projectName: appProjectName, projectRoot: appProjectRoot, projectNameAndRootFormat, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
|
16
16
|
name: options.name,
|
|
@@ -62,4 +62,3 @@ async function normalizeOptions(host, options, callingGenerator = '@nx/nuxt:appl
|
|
|
62
62
|
normalized.e2eTestRunner = normalized.e2eTestRunner ?? 'playwright';
|
|
63
63
|
return normalized;
|
|
64
64
|
}
|
|
65
|
-
exports.normalizeOptions = normalizeOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nuxtInitGenerator =
|
|
3
|
+
exports.nuxtInitGenerator = nuxtInitGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
6
6
|
const plugin_1 = require("../../plugins/plugin");
|
|
@@ -16,5 +16,4 @@ async function nuxtInitGenerator(host, schema) {
|
|
|
16
16
|
}
|
|
17
17
|
return installTask;
|
|
18
18
|
}
|
|
19
|
-
exports.nuxtInitGenerator = nuxtInitGenerator;
|
|
20
19
|
exports.default = nuxtInitGenerator;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateDependencies = updateDependencies;
|
|
4
|
+
exports.addVitestTargetDefaults = addVitestTargetDefaults;
|
|
5
|
+
exports.addPlugin = addPlugin;
|
|
4
6
|
const devkit_1 = require("@nx/devkit");
|
|
5
7
|
const versions_1 = require("../../../utils/versions");
|
|
6
8
|
function updateDependencies(host, schema) {
|
|
@@ -10,7 +12,6 @@ function updateDependencies(host, schema) {
|
|
|
10
12
|
'@nx/vite': versions_1.nxVersion,
|
|
11
13
|
}, undefined, schema.keepExistingVersions);
|
|
12
14
|
}
|
|
13
|
-
exports.updateDependencies = updateDependencies;
|
|
14
15
|
function addVitestTargetDefaults(tree) {
|
|
15
16
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
16
17
|
const productionFileSet = nxJson.namedInputs?.production;
|
|
@@ -20,7 +21,6 @@ function addVitestTargetDefaults(tree) {
|
|
|
20
21
|
}
|
|
21
22
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
22
23
|
}
|
|
23
|
-
exports.addVitestTargetDefaults = addVitestTargetDefaults;
|
|
24
24
|
function addPlugin(tree) {
|
|
25
25
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
26
26
|
nxJson.plugins ??= [];
|
|
@@ -62,4 +62,3 @@ function addPlugin(tree) {
|
|
|
62
62
|
}
|
|
63
63
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
64
64
|
}
|
|
65
|
-
exports.addPlugin = addPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storybookConfigurationGenerator =
|
|
3
|
+
exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const vue_1 = require("@nx/vue");
|
|
6
6
|
/*
|
|
@@ -24,5 +24,4 @@ async function storybookConfigurationGenerator(tree, options) {
|
|
|
24
24
|
await (0, devkit_1.formatFiles)(tree);
|
|
25
25
|
return (0, devkit_1.runTasksInSerial)(storybookConfigurationGenerator);
|
|
26
26
|
}
|
|
27
|
-
exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
|
|
28
27
|
exports.default = storybookConfigurationGenerator;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const executor_utils_1 = require("../../utils/executor-utils");
|
|
5
6
|
const path_1 = require("path");
|
|
@@ -27,7 +28,6 @@ async function default_1(tree) {
|
|
|
27
28
|
}
|
|
28
29
|
await (0, devkit_1.formatFiles)(tree);
|
|
29
30
|
}
|
|
30
|
-
exports.default = default_1;
|
|
31
31
|
function findNuxtConfig(tree, projectRoot) {
|
|
32
32
|
const allowsExt = ['js', 'mjs', 'ts', 'cjs', 'mts', 'cts'];
|
|
33
33
|
for (const ext of allowsExt) {
|
package/src/utils/add-linting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addLinting =
|
|
3
|
+
exports.addLinting = addLinting;
|
|
4
4
|
const eslint_1 = require("@nx/eslint");
|
|
5
5
|
const path_1 = require("nx/src/utils/path");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -40,4 +40,3 @@ async function addLinting(host, options) {
|
|
|
40
40
|
}
|
|
41
41
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
42
42
|
}
|
|
43
|
-
exports.addLinting = addLinting;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTsConfig =
|
|
3
|
+
exports.createTsConfig = createTsConfig;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const shared = require("@nx/js/src/utils/typescript/create-ts-config");
|
|
6
6
|
function createTsConfig(host, options, relativePathToRootTsConfig) {
|
|
@@ -34,7 +34,6 @@ function createTsConfig(host, options, relativePathToRootTsConfig) {
|
|
|
34
34
|
}
|
|
35
35
|
(0, devkit_1.writeJson)(host, `${options.projectRoot}/tsconfig.json`, json);
|
|
36
36
|
}
|
|
37
|
-
exports.createTsConfig = createTsConfig;
|
|
38
37
|
function createAppTsConfig(host, options) {
|
|
39
38
|
const json = {
|
|
40
39
|
extends: './tsconfig.json',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadNuxtKitDynamicImport =
|
|
3
|
+
exports.loadNuxtKitDynamicImport = loadNuxtKitDynamicImport;
|
|
4
4
|
function loadNuxtKitDynamicImport() {
|
|
5
5
|
return Function('return import("@nuxt/kit")')();
|
|
6
6
|
}
|
|
7
|
-
exports.loadNuxtKitDynamicImport = loadNuxtKitDynamicImport;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateGitIgnore =
|
|
3
|
+
exports.updateGitIgnore = updateGitIgnore;
|
|
4
4
|
function updateGitIgnore(tree) {
|
|
5
5
|
const contents = tree.read('.gitignore', 'utf-8') ?? '';
|
|
6
6
|
const nuxtEntries = [
|
|
@@ -20,4 +20,3 @@ function updateGitIgnore(tree) {
|
|
|
20
20
|
}
|
|
21
21
|
tree.write('.gitignore', [newContents].join('\n'));
|
|
22
22
|
}
|
|
23
|
-
exports.updateGitIgnore = updateGitIgnore;
|