@nx/nuxt 23.0.0-beta.23 → 23.0.0-beta.25
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/{index.d.ts → dist/index.d.ts} +0 -1
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-vitest.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-vitest.js +1 -34
- package/{src → dist/src}/generators/application/lib/ensure-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/storybook-configuration/configuration.d.ts +0 -1
- package/dist/src/migrations/update-22-2-0/ai-instructions-for-nuxt-4.md +531 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/plugins/plugin.d.ts +0 -1
- package/{src → dist/src}/utils/add-linting.d.ts +0 -1
- package/{src → dist/src}/utils/assert-supported-nuxt-version.d.ts +0 -1
- package/{src → dist/src}/utils/create-ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/executor-utils.d.ts +0 -1
- package/{src → dist/src}/utils/update-gitignore.d.ts +0 -1
- package/{src → dist/src}/utils/version-utils.d.ts +0 -1
- package/{src → dist/src}/utils/versions.d.ts +0 -1
- package/{src → dist/src}/utils/versions.js +2 -1
- package/generators.json +6 -6
- package/migrations.json +7 -1
- package/package.json +35 -20
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/src/generators/application/application.d.ts.map +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/add-vitest.d.ts.map +0 -1
- package/src/generators/application/lib/ensure-dependencies.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/init/lib/utils.d.ts.map +0 -1
- package/src/generators/storybook-configuration/configuration.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/utils/add-linting.d.ts.map +0 -1
- package/src/utils/assert-supported-nuxt-version.d.ts.map +0 -1
- package/src/utils/create-ts-config.d.ts.map +0 -1
- package/src/utils/executor-utils.d.ts.map +0 -1
- package/src/utils/update-gitignore.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{src → dist/src}/generators/application/application.js +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/__dot__npmrc +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/app/app.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/app/assets/css/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/app/pages/about.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/app/pages/index.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/nuxt.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/public/__dot__gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/public/favicon.ico__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/server/api/greet.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/app-dir/server/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/__dot__npmrc +0 -0
- /package/{src → dist/src}/generators/application/files/base/nuxt.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/app.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/assets/css/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/pages/about.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/pages/index.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/public/__dot__gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/public/favicon.ico__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/server/api/greet.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/server/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/src/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/src/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/src/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome-app-dir/claimed/app/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome-app-dir/not-configured/app/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome-app-dir/unclaimed/app/components/NxWelcome.vue__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/lib/add-e2e.js +0 -0
- /package/{src → dist/src}/generators/application/lib/ensure-dependencies.js +0 -0
- /package/{src → dist/src}/generators/application/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +0 -0
- /package/{src → dist/src}/generators/init/init.js +0 -0
- /package/{src → dist/src}/generators/init/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/init/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/configuration.js +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.json +0 -0
- /package/{src → dist/src}/plugins/plugin.js +0 -0
- /package/{src → dist/src}/utils/add-linting.js +0 -0
- /package/{src → dist/src}/utils/assert-supported-nuxt-version.js +0 -0
- /package/{src → dist/src}/utils/create-ts-config.js +0 -0
- /package/{src → dist/src}/utils/executor-utils.js +0 -0
- /package/{src → dist/src}/utils/update-gitignore.js +0 -0
- /package/{src → dist/src}/utils/version-utils.js +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrateCreateNodesV2ToCreateNodes;
|
|
4
|
+
exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
|
+
const DEPRECATED_NAME = 'createNodesV2';
|
|
8
|
+
const CANONICAL_NAME = 'createNodes';
|
|
9
|
+
// Module specifiers from which `@nx/nuxt` publicly exposes `createNodesV2`.
|
|
10
|
+
// A named import or re-export of `createNodesV2` from one of these is rewritten
|
|
11
|
+
// to the canonical `createNodes` export.
|
|
12
|
+
const TARGET_SPECIFIERS = new Set(['@nx/nuxt/plugin']);
|
|
13
|
+
let ts;
|
|
14
|
+
async function migrateCreateNodesV2ToCreateNodes(tree) {
|
|
15
|
+
let touchedCount = 0;
|
|
16
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
17
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const original = tree.read(filePath, 'utf-8');
|
|
21
|
+
if (!original || !original.includes(DEPRECATED_NAME)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
|
|
25
|
+
if (updated !== original) {
|
|
26
|
+
tree.write(filePath, updated);
|
|
27
|
+
touchedCount += 1;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
if (touchedCount > 0) {
|
|
31
|
+
devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
|
|
32
|
+
}
|
|
33
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
|
|
37
|
+
* when they come from one of the given module specifiers. Only the named
|
|
38
|
+
* bindings are touched — the module specifier, the `import`/`export` keyword,
|
|
39
|
+
* any `type` modifier, and any default import are left untouched.
|
|
40
|
+
*/
|
|
41
|
+
function rewriteCreateNodesV2Imports(source, specifiers) {
|
|
42
|
+
ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
|
|
43
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
44
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
45
|
+
const changes = [];
|
|
46
|
+
for (const stmt of sourceFile.statements) {
|
|
47
|
+
if (ts.isImportDeclaration(stmt)) {
|
|
48
|
+
collectImportRewrite(sourceFile, stmt, specifiers, changes);
|
|
49
|
+
}
|
|
50
|
+
else if (ts.isExportDeclaration(stmt)) {
|
|
51
|
+
collectExportRewrite(sourceFile, stmt, specifiers, changes);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
|
|
55
|
+
}
|
|
56
|
+
function isTargetSpecifier(node, specifiers) {
|
|
57
|
+
return ts.isStringLiteral(node) && specifiers.has(node.text);
|
|
58
|
+
}
|
|
59
|
+
function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
60
|
+
if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const namedBindings = stmt.importClause?.namedBindings;
|
|
64
|
+
// Only `import { ... }` carries renameable named bindings. `import x`,
|
|
65
|
+
// `import * as ns`, and side-effect imports reference the module wholesale
|
|
66
|
+
// and keep working through the `createNodesV2` runtime alias, so we leave
|
|
67
|
+
// them be. A mixed `import def, { createNodesV2 }` still has its named
|
|
68
|
+
// bindings rewritten below — the default binding is untouched.
|
|
69
|
+
if (!namedBindings || !ts.isNamedImports(namedBindings)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
rewriteNamedBindings(sourceFile, namedBindings, changes);
|
|
73
|
+
}
|
|
74
|
+
function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
75
|
+
if (!stmt.moduleSpecifier ||
|
|
76
|
+
!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// `export { ... } from '...'` can be rewritten; `export * from '...'` has no
|
|
80
|
+
// named bindings to rename.
|
|
81
|
+
if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Re-renders the `{ ... }` of a named import/export, renaming any
|
|
88
|
+
* `createNodesV2` specifier to `createNodes`. If renaming would collide with a
|
|
89
|
+
* `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
|
|
90
|
+
* the duplicate is dropped. Returns without recording a change when the binding
|
|
91
|
+
* list contains no `createNodesV2`.
|
|
92
|
+
*/
|
|
93
|
+
function rewriteNamedBindings(sourceFile, namedBindings, changes) {
|
|
94
|
+
const elements = namedBindings.elements;
|
|
95
|
+
const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
|
|
96
|
+
if (!hasDeprecated) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const seen = new Set();
|
|
100
|
+
const rendered = [];
|
|
101
|
+
for (const el of elements) {
|
|
102
|
+
const text = renderSpecifier(el);
|
|
103
|
+
if (!seen.has(text)) {
|
|
104
|
+
seen.add(text);
|
|
105
|
+
rendered.push(text);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const start = namedBindings.getStart(sourceFile);
|
|
109
|
+
changes.push({
|
|
110
|
+
type: devkit_1.ChangeType.Delete,
|
|
111
|
+
start,
|
|
112
|
+
length: namedBindings.getEnd() - start,
|
|
113
|
+
}, {
|
|
114
|
+
type: devkit_1.ChangeType.Insert,
|
|
115
|
+
index: start,
|
|
116
|
+
text: `{ ${rendered.join(', ')} }`,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function renderSpecifier(el) {
|
|
120
|
+
const typePrefix = el.isTypeOnly ? 'type ' : '';
|
|
121
|
+
const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
|
|
122
|
+
// `{ name }` — no alias, so the local binding follows the rename.
|
|
123
|
+
if (!el.propertyName) {
|
|
124
|
+
return `${typePrefix}${rename(el.name.text)}`;
|
|
125
|
+
}
|
|
126
|
+
// `{ propertyName as name }` — only the imported (left) side is renamed; the
|
|
127
|
+
// local alias is preserved. A now-redundant alias such as
|
|
128
|
+
// `createNodesV2 as createNodes` collapses to `createNodes`.
|
|
129
|
+
const canonicalImported = rename(el.propertyName.text);
|
|
130
|
+
const localName = el.name.text;
|
|
131
|
+
return canonicalImported === localName
|
|
132
|
+
? `${typePrefix}${localName}`
|
|
133
|
+
: `${typePrefix}${canonicalImported} as ${localName}`;
|
|
134
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#### Rename `createNodesV2` imports to `createNodes`
|
|
2
|
+
|
|
3
|
+
`@nx/nuxt` renamed its primary inferred-plugin export from `createNodesV2` to `createNodes`. The `createNodesV2` name is preserved as a deprecated alias for now, but new code should use `createNodes`.
|
|
4
|
+
|
|
5
|
+
This migration scans every `.ts`, `.tsx`, `.cts`, and `.mts` file in your workspace and rewrites named imports and re-exports of `createNodesV2` from `@nx/nuxt/plugin` to `createNodes`.
|
|
6
|
+
|
|
7
|
+
#### Sample Code Changes
|
|
8
|
+
|
|
9
|
+
##### Before
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { createNodesV2 } from '@nx/nuxt/plugin';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { createNodes } from '@nx/nuxt/plugin';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Aliases are preserved (`createNodesV2 as cn` becomes `createNodes as cn`), and if a file already imports both names (`{ createNodes, createNodesV2 }`) the redundant binding is dropped.
|
|
22
|
+
|
|
23
|
+
#### What is not rewritten
|
|
24
|
+
|
|
25
|
+
Only static `import`/`export` named bindings from `@nx/nuxt/plugin` are rewritten. Namespace imports, dynamic `import(...)`, `require(...)` destructuring, and property access such as `plugin.createNodesV2` are left untouched — they keep working through the `createNodesV2` runtime alias. Update those by hand if you want to drop the deprecated name everywhere.
|
|
@@ -13,4 +13,3 @@ export declare function isNuxtV4(tree: Tree): Promise<boolean>;
|
|
|
13
13
|
export declare function getInstalledNuxtVersion(tree: Tree): string | undefined;
|
|
14
14
|
export declare function getInstalledNuxtMajorVersion(tree: Tree): 3 | 4 | undefined;
|
|
15
15
|
export declare function getInstalledNuxtVersionFromGraph(): Promise<string | undefined>;
|
|
16
|
-
//# sourceMappingURL=version-utils.d.ts.map
|
|
@@ -16,4 +16,3 @@ export declare const nuxtDevtoolsVersion = "^3.0.0";
|
|
|
16
16
|
export declare const nuxtUiTemplatesVersion = "^1.3.1";
|
|
17
17
|
export declare const nuxtEslintConfigVersion = "^1.10.0";
|
|
18
18
|
export declare const nuxtEslintConfigLegacyVersion = "~0.5.6";
|
|
19
|
-
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nuxtEslintConfigLegacyVersion = exports.nuxtEslintConfigVersion = exports.nuxtUiTemplatesVersion = exports.nuxtDevtoolsVersion = exports.nuxtDevtoolsV3Version = exports.nuxtDevtoolsV4Version = exports.h3Version = exports.nuxtSchemaVersion = exports.nuxtSchemaV3Version = exports.nuxtSchemaV4Version = exports.nuxtKitVersion = exports.nuxtKitV3Version = exports.nuxtKitV4Version = exports.nuxtVersion = exports.nuxtV3Version = exports.nuxtV4Version = exports.minSupportedNuxtVersion = exports.nxVersion = void 0;
|
|
4
|
-
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.nxVersion = require((0, path_1.join)('@nx/nuxt', 'package.json')).version;
|
|
5
6
|
// Lowest Nuxt version the plugin supports. Nuxt 2 is EOL (2024-06-30). The only
|
|
6
7
|
// runtime Nuxt API the plugin uses is `@nuxt/kit`'s `loadNuxtConfig` (reading
|
|
7
8
|
// `buildDir`), which resolves the workspace's own `@nuxt/kit` (an optional
|
package/generators.json
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
"extends": ["@nx/vue"],
|
|
5
5
|
"generators": {
|
|
6
6
|
"init": {
|
|
7
|
-
"factory": "./src/generators/init/init",
|
|
8
|
-
"schema": "./src/generators/init/schema.json",
|
|
7
|
+
"factory": "./dist/src/generators/init/init",
|
|
8
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
9
9
|
"description": "Initialize the `@nx/nuxt` plugin.",
|
|
10
10
|
"aliases": ["ng-add"],
|
|
11
11
|
"hidden": true
|
|
12
12
|
},
|
|
13
13
|
"application": {
|
|
14
|
-
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
15
|
-
"schema": "./src/generators/application/schema.json",
|
|
14
|
+
"factory": "./dist/src/generators/application/application#applicationGeneratorInternal",
|
|
15
|
+
"schema": "./dist/src/generators/application/schema.json",
|
|
16
16
|
"aliases": ["app"],
|
|
17
17
|
"description": "Create a Nuxt application."
|
|
18
18
|
},
|
|
19
19
|
"storybook-configuration": {
|
|
20
|
-
"factory": "./src/generators/storybook-configuration/configuration",
|
|
21
|
-
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
20
|
+
"factory": "./dist/src/generators/storybook-configuration/configuration",
|
|
21
|
+
"schema": "./dist/src/generators/storybook-configuration/schema.json",
|
|
22
22
|
"description": "Set up storybook for a Nuxt app.",
|
|
23
23
|
"hidden": false
|
|
24
24
|
}
|
package/migrations.json
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
"update-22-2-0-create-ai-instructions-for-nuxt-4": {
|
|
4
4
|
"version": "22.2.0-beta.0",
|
|
5
5
|
"description": "Create AI Instructions to help migrate workspaces to Nuxt 4.",
|
|
6
|
-
"prompt": "./src/migrations/update-22-2-0/ai-instructions-for-nuxt-4.md"
|
|
6
|
+
"prompt": "./dist/src/migrations/update-22-2-0/ai-instructions-for-nuxt-4.md"
|
|
7
|
+
},
|
|
8
|
+
"update-23-0-0-migrate-create-nodes-v2-import": {
|
|
9
|
+
"version": "23.0.0-beta.24",
|
|
10
|
+
"description": "Rename imports of `createNodesV2` from `@nx/nuxt/plugin` to the canonical `createNodes` export.",
|
|
11
|
+
"implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
|
|
12
|
+
"documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
|
|
7
13
|
}
|
|
8
14
|
},
|
|
9
15
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.25",
|
|
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": {
|
|
@@ -15,9 +15,22 @@
|
|
|
15
15
|
"CLI",
|
|
16
16
|
"Front-end"
|
|
17
17
|
],
|
|
18
|
-
"main": "./index.js",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
19
|
"type": "commonjs",
|
|
20
|
-
"types": "./index.d.ts",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"!dist/tsconfig.tsbuildinfo",
|
|
24
|
+
"migrations.json",
|
|
25
|
+
"generators.json"
|
|
26
|
+
],
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
"*": {
|
|
29
|
+
"plugin": [
|
|
30
|
+
"dist/plugin.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
21
34
|
"author": "Victor Savkin",
|
|
22
35
|
"license": "MIT",
|
|
23
36
|
"bugs": {
|
|
@@ -25,35 +38,37 @@
|
|
|
25
38
|
},
|
|
26
39
|
"homepage": "https://nx.dev",
|
|
27
40
|
"generators": "./generators.json",
|
|
28
|
-
"executors": "./executors.json",
|
|
29
41
|
"exports": {
|
|
30
42
|
".": {
|
|
31
|
-
"
|
|
32
|
-
"types": "./index.d.ts"
|
|
43
|
+
"@nx/nx-source": "./index.ts",
|
|
44
|
+
"types": "./dist/index.d.ts",
|
|
45
|
+
"default": "./dist/index.js"
|
|
33
46
|
},
|
|
34
|
-
"./generators/*/schema.json": "./src/generators/*/schema.json",
|
|
35
|
-
"./generators/*/schema": "./src/generators/*/schema.d.ts",
|
|
36
47
|
"./package.json": "./package.json",
|
|
37
|
-
"./generators.json": "./generators.json",
|
|
38
|
-
"./executors.json": "./executors.json",
|
|
39
48
|
"./migrations.json": "./migrations.json",
|
|
40
|
-
"./
|
|
49
|
+
"./generators.json": "./generators.json",
|
|
50
|
+
"./plugin": {
|
|
51
|
+
"@nx/nx-source": "./plugin.ts",
|
|
52
|
+
"types": "./dist/plugin.d.ts",
|
|
53
|
+
"default": "./dist/plugin.js"
|
|
54
|
+
}
|
|
41
55
|
},
|
|
42
56
|
"nx-migrations": {
|
|
43
|
-
"migrations": "./migrations.json"
|
|
57
|
+
"migrations": "./migrations.json",
|
|
58
|
+
"supportsOptionalUpdates": true
|
|
44
59
|
},
|
|
45
60
|
"dependencies": {
|
|
46
61
|
"tslib": "^2.3.0",
|
|
47
|
-
"
|
|
48
|
-
"@nx/
|
|
49
|
-
"@nx/eslint": "23.0.0-beta.
|
|
50
|
-
"@nx/vue": "23.0.0-beta.
|
|
51
|
-
"@nx/vite": "23.0.0-beta.
|
|
52
|
-
"@nx/
|
|
53
|
-
"
|
|
62
|
+
"semver": "^7.6.3",
|
|
63
|
+
"@nx/devkit": "23.0.0-beta.25",
|
|
64
|
+
"@nx/eslint": "23.0.0-beta.25",
|
|
65
|
+
"@nx/vue": "23.0.0-beta.25",
|
|
66
|
+
"@nx/vite": "23.0.0-beta.25",
|
|
67
|
+
"@nx/js": "23.0.0-beta.25",
|
|
68
|
+
"@nx/vitest": "23.0.0-beta.25"
|
|
54
69
|
},
|
|
55
70
|
"devDependencies": {
|
|
56
|
-
"nx": "23.0.0-beta.
|
|
71
|
+
"nx": "23.0.0-beta.25"
|
|
57
72
|
},
|
|
58
73
|
"peerDependencies": {
|
|
59
74
|
"nuxt": ">=3.0.0 <5.0.0",
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/nuxt/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC"}
|
package/plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/nuxt/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/application/application.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,EAKjB,IAAI,EAEL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6BlC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAqN5E;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-e2e.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/add-e2e.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,iBAAiB,EAGjB,IAAI,EAEL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,MAAM,CAC1B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CA8G5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-vitest.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/add-vitest.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,IAAI,EAAc,MAAM,YAAY,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,mDAyDpE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,mDA4B1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIrD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAqD3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,8BAuBrE;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/init/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,IAAI,EAEL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,mDActE;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,QAcjD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,QAiDnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/storybook-configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EAEL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,mDA2ChB;AAED,eAAe,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/plugins/plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,WAAW,EAMZ,MAAM,YAAY,CAAC;AAapB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAoDtD,CAAC;AAEF,eAAO,MAAM,aAAa,gCAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAEtE,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAgBpB,wBAAsB,UAAU,CAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IACP,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,8BA4DF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert-supported-nuxt-version.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/assert-supported-nuxt-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-ts-config.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/create-ts-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,YAAY,CAAC;AAG7C,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,EACD,0BAA0B,EAAE,MAAM,QAgCnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/executor-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,IACa,OAAO,CACxD,cAAc,WAAW,CAAC,CAC3B,CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-gitignore.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/update-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,QAsBzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/version-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAenD,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,wBAAwB,CAAC,CAqBnC;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAS3D;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAS3D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAetE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAW1E;AAED,wBAAsB,gCAAgC,IAAI,OAAO,CAC/D,MAAM,GAAG,SAAS,CACnB,CAWA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAO/D,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAG/C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,WAAW,WAAgB,CAAC;AAGzC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,cAAc,WAAmB,CAAC;AAG/C,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,iBAAiB,WAAsB,CAAC;AAGrD,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,WAAwB,CAAC;AACzD,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAG/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,6BAA6B,WAAW,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src → dist/src}/generators/application/files/app-dir/app/assets/css/styles.__style__
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src → dist/src}/generators/application/files/base/src/server/tsconfig.json__tmpl__
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|