@nx/nuxt 0.0.0-pr-30457-dcde6de → 0.0.0-pr-30457-516640c
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/plugin.d.ts +1 -1
- package/plugin.js +2 -1
- package/src/generators/init/init.js +1 -1
- package/src/plugins/plugin.d.ts +2 -2
- package/src/plugins/plugin.js +10 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "0.0.0-pr-30457-
|
|
3
|
+
"version": "0.0.0-pr-30457-516640c",
|
|
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": "0.0.0-pr-30457-
|
|
35
|
-
"@nx/js": "0.0.0-pr-30457-
|
|
36
|
-
"@nx/eslint": "0.0.0-pr-30457-
|
|
37
|
-
"@nx/vue": "0.0.0-pr-30457-
|
|
38
|
-
"@nx/vite": "0.0.0-pr-30457-
|
|
34
|
+
"@nx/devkit": "0.0.0-pr-30457-516640c",
|
|
35
|
+
"@nx/js": "0.0.0-pr-30457-516640c",
|
|
36
|
+
"@nx/eslint": "0.0.0-pr-30457-516640c",
|
|
37
|
+
"@nx/vue": "0.0.0-pr-30457-516640c",
|
|
38
|
+
"@nx/vite": "0.0.0-pr-30457-516640c",
|
|
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; } });
|
|
@@ -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) => {
|