@nx/nuxt 21.0.0-beta.10 → 21.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "21.0.0-beta.
|
|
3
|
+
"version": "21.0.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": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.0",
|
|
33
33
|
"@nuxt/kit": "^3.10.0",
|
|
34
|
-
"@nx/devkit": "21.0.0-beta.
|
|
35
|
-
"@nx/js": "21.0.0-beta.
|
|
36
|
-
"@nx/eslint": "21.0.0-beta.
|
|
37
|
-
"@nx/vue": "21.0.0-beta.
|
|
38
|
-
"@nx/vite": "21.0.0-beta.
|
|
34
|
+
"@nx/devkit": "21.0.0-beta.11",
|
|
35
|
+
"@nx/js": "21.0.0-beta.11",
|
|
36
|
+
"@nx/eslint": "21.0.0-beta.11",
|
|
37
|
+
"@nx/vue": "21.0.0-beta.11",
|
|
38
|
+
"@nx/vite": "21.0.0-beta.11",
|
|
39
39
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
package/plugin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createNodes, NuxtPluginOptions } from './src/plugins/plugin';
|
|
1
|
+
export { createNodes, createNodesV2, NuxtPluginOptions, } from './src/plugins/plugin';
|
package/plugin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodes = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
var plugin_1 = require("./src/plugins/plugin");
|
|
5
5
|
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
|
|
6
|
+
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
|
|
@@ -8,7 +8,6 @@ const normalize_options_1 = require("./lib/normalize-options");
|
|
|
8
8
|
const create_ts_config_1 = require("../../utils/create-ts-config");
|
|
9
9
|
const js_1 = require("@nx/js");
|
|
10
10
|
const update_gitignore_1 = require("../../utils/update-gitignore");
|
|
11
|
-
const eslint_1 = require("@nx/eslint");
|
|
12
11
|
const add_e2e_1 = require("./lib/add-e2e");
|
|
13
12
|
const add_linting_1 = require("../../utils/add-linting");
|
|
14
13
|
const add_vitest_1 = require("./lib/add-vitest");
|
|
@@ -106,7 +105,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
106
105
|
tasks.push(await (0, add_linting_1.addLinting)(tree, {
|
|
107
106
|
projectName: options.projectName,
|
|
108
107
|
projectRoot: options.appProjectRoot,
|
|
109
|
-
linter: options.linter ??
|
|
108
|
+
linter: options.linter ?? 'eslint',
|
|
110
109
|
unitTestRunner: options.unitTestRunner,
|
|
111
110
|
rootProject: options.rootProject,
|
|
112
111
|
}));
|
|
@@ -6,7 +6,7 @@ const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
|
6
6
|
const plugin_1 = require("../../plugins/plugin");
|
|
7
7
|
const utils_1 = require("./lib/utils");
|
|
8
8
|
async function nuxtInitGenerator(host, schema) {
|
|
9
|
-
await (0, add_plugin_1.
|
|
9
|
+
await (0, add_plugin_1.addPlugin)(host, await (0, devkit_1.createProjectGraphAsync)(), '@nx/nuxt/plugin', plugin_1.createNodesV2, {
|
|
10
10
|
buildTargetName: ['build', 'nuxt:build', 'nuxt-build'],
|
|
11
11
|
serveTargetName: ['serve', 'nuxt:serve', 'nuxt-serve'],
|
|
12
12
|
buildDepsTargetName: ['build-deps', 'nuxt:build-deps', 'nuxt-build-deps'],
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const createDependencies: CreateDependencies;
|
|
1
|
+
import { CreateNodes, CreateNodesV2 } from '@nx/devkit';
|
|
3
2
|
export interface NuxtPluginOptions {
|
|
4
3
|
buildTargetName?: string;
|
|
5
4
|
serveTargetName?: string;
|
|
@@ -8,4 +7,5 @@ export interface NuxtPluginOptions {
|
|
|
8
7
|
buildDepsTargetName?: string;
|
|
9
8
|
watchDepsTargetName?: string;
|
|
10
9
|
}
|
|
10
|
+
export declare const createNodesV2: CreateNodesV2<NuxtPluginOptions>;
|
|
11
11
|
export declare const createNodes: CreateNodes<NuxtPluginOptions>;
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodes = exports.
|
|
3
|
+
exports.createNodes = exports.createNodesV2 = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
|
6
6
|
const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
@@ -24,11 +24,15 @@ function writeTargetsToCache() {
|
|
|
24
24
|
...targetsCache,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.
|
|
27
|
+
exports.createNodesV2 = [
|
|
28
|
+
'**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
|
|
29
|
+
async (files, options, context) => {
|
|
30
|
+
//TODO(@nrwl/nx-vue-reviewers): This should batch hashing like our other plugins.
|
|
31
|
+
const result = await (0, devkit_1.createNodesFromFiles)(exports.createNodes[1], files, options, context);
|
|
32
|
+
writeTargetsToCache();
|
|
33
|
+
return result;
|
|
34
|
+
},
|
|
35
|
+
];
|
|
32
36
|
exports.createNodes = [
|
|
33
37
|
'**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
|
|
34
38
|
async (configFilePath, options, context) => {
|
|
@@ -87,11 +91,13 @@ function serveTarget(projectRoot) {
|
|
|
87
91
|
options: {
|
|
88
92
|
cwd: projectRoot,
|
|
89
93
|
},
|
|
94
|
+
continuous: true,
|
|
90
95
|
};
|
|
91
96
|
return targetConfig;
|
|
92
97
|
}
|
|
93
98
|
function serveStaticTarget(options) {
|
|
94
99
|
const targetConfig = {
|
|
100
|
+
continuous: true,
|
|
95
101
|
executor: '@nx/web:file-server',
|
|
96
102
|
options: {
|
|
97
103
|
buildTarget: `${options.buildStaticTargetName}`,
|