nuxt-llms 0.1.2 → 0.1.4
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/README.md +1 -1
- package/dist/module.json +5 -4
- package/dist/module.mjs +8 -4
- package/dist/runtime/server/routes/llms.txt.get.js +1 -1
- package/dist/runtime/server/utils/hooks.d.ts +1 -1
- package/dist/types.d.mts +4 -2
- package/package.json +29 -22
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -7
- package/dist/types.d.ts +0 -7
package/README.md
CHANGED
|
@@ -240,7 +240,7 @@ export default defineNuxtConfig({
|
|
|
240
240
|
})
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
-
Checkout the [Nuxt Content documentation](https://content.nuxt.com/docs/
|
|
243
|
+
Checkout the [Nuxt Content documentation](https://content.nuxt.com/docs/files/markdown) for more information on how to write your content files.
|
|
244
244
|
|
|
245
245
|
And checkout the [Nuxt Content llms documentation](https://content.nuxt.com/docs/advanced/llms) for more information on how to customize LLMs contents with `nuxt-llms` and `@nuxt/content`.
|
|
246
246
|
|
package/dist/module.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "nuxt-llms",
|
|
3
3
|
"configKey": "llms",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
|
+
"docs": "https://github.com/nuxtlabs/nuxt-llms",
|
|
5
6
|
"builder": {
|
|
6
|
-
"@nuxt/module-builder": "0.
|
|
7
|
-
"unbuild": "
|
|
7
|
+
"@nuxt/module-builder": "1.0.2",
|
|
8
|
+
"unbuild": "3.6.1"
|
|
8
9
|
}
|
|
9
10
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { defineNuxtModule, useLogger, createResolver, addServerImports, addServerHandler, addPrerenderRoutes } from '@nuxt/kit';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const version = "0.1.4";
|
|
4
|
+
|
|
5
|
+
const module$1 = defineNuxtModule({
|
|
4
6
|
meta: {
|
|
5
|
-
name: "
|
|
6
|
-
configKey: "llms"
|
|
7
|
+
name: "nuxt-llms",
|
|
8
|
+
configKey: "llms",
|
|
9
|
+
version,
|
|
10
|
+
docs: "https://github.com/nuxtlabs/nuxt-llms"
|
|
7
11
|
},
|
|
8
12
|
defaults: {},
|
|
9
13
|
setup(options, nuxt) {
|
|
@@ -40,4 +44,4 @@ const module = defineNuxtModule({
|
|
|
40
44
|
}
|
|
41
45
|
});
|
|
42
46
|
|
|
43
|
-
export { module as default };
|
|
47
|
+
export { module$1 as default };
|
|
@@ -10,7 +10,7 @@ export default eventHandler(async (event) => {
|
|
|
10
10
|
`# ${llms.title || "Documentation"}`
|
|
11
11
|
];
|
|
12
12
|
if (llms.description) {
|
|
13
|
-
document.push(`> ${
|
|
13
|
+
document.push(`> ${llms.description}`);
|
|
14
14
|
}
|
|
15
15
|
for (const section of llms.sections) {
|
|
16
16
|
document.push(`## ${section.title}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { H3Event } from 'h3';
|
|
2
|
-
import type { ModuleOptions } from 'nuxt-llms';
|
|
3
2
|
import type { NitroRuntimeHooks } from 'nitropack/types';
|
|
3
|
+
import type { ModuleOptions } from 'nuxt-llms';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Custom hooks are deprecated in favor of NitroRuntimeHooks.
|
|
6
6
|
*/
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { NuxtModule } from '@nuxt/schema'
|
|
2
2
|
|
|
3
|
-
import type { default as Module } from './module.
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { default } from './module.
|
|
7
|
+
export { default } from './module.mjs'
|
|
8
|
+
|
|
9
|
+
export * from '../dist/runtime/types.js'
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-llms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Generate llms.txt documentation for your Nuxt application",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/nuxtlabs/nuxt-llms.git"
|
|
8
8
|
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"nuxt",
|
|
11
|
+
"llms",
|
|
12
|
+
"documentation",
|
|
13
|
+
"generator",
|
|
14
|
+
"nuxt-module"
|
|
15
|
+
],
|
|
9
16
|
"license": "MIT",
|
|
10
17
|
"type": "module",
|
|
11
18
|
"exports": {
|
|
12
19
|
".": {
|
|
13
|
-
"types": "./dist/module.d.
|
|
14
|
-
"import": "./dist/module.mjs"
|
|
15
|
-
"require": "./dist/module.cjs"
|
|
20
|
+
"types": "./dist/module.d.mts",
|
|
21
|
+
"import": "./dist/module.mjs"
|
|
16
22
|
},
|
|
17
23
|
"./runtime": {
|
|
18
24
|
"types": "./dist/runtime/index.d.ts",
|
|
@@ -20,8 +26,8 @@
|
|
|
20
26
|
"require": "./dist/runtime/index.js"
|
|
21
27
|
}
|
|
22
28
|
},
|
|
23
|
-
"main": "./dist/module.
|
|
24
|
-
"types": "./dist/module.d.
|
|
29
|
+
"main": "./dist/module.mjs",
|
|
30
|
+
"types": "./dist/module.d.mts",
|
|
25
31
|
"files": [
|
|
26
32
|
"dist"
|
|
27
33
|
],
|
|
@@ -36,25 +42,26 @@
|
|
|
36
42
|
"test": "vitest run",
|
|
37
43
|
"test:watch": "vitest watch",
|
|
38
44
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
39
|
-
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
|
|
45
|
+
"verify": "npm run dev:prepare && npm run prepack && npm run lint && npm run test && npm run typecheck"
|
|
40
46
|
},
|
|
41
47
|
"dependencies": {
|
|
42
|
-
"@nuxt/kit": "^
|
|
48
|
+
"@nuxt/kit": "^4.2.2"
|
|
43
49
|
},
|
|
44
50
|
"devDependencies": {
|
|
45
|
-
"nuxt
|
|
46
|
-
"@nuxt/devtools": "^
|
|
47
|
-
"@nuxt/eslint-config": "^1.
|
|
48
|
-
"@nuxt/module-builder": "^0.
|
|
49
|
-
"@nuxt/schema": "^
|
|
50
|
-
"@nuxt/test-utils": "^3.
|
|
51
|
-
"@types/node": "
|
|
52
|
-
"changelogen": "^0.6.
|
|
53
|
-
"eslint": "^9.
|
|
54
|
-
"nuxt": "^
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
51
|
+
"@nuxt/content": "^3.10.0",
|
|
52
|
+
"@nuxt/devtools": "^3.1.1",
|
|
53
|
+
"@nuxt/eslint-config": "^1.12.1",
|
|
54
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
55
|
+
"@nuxt/schema": "^4.2.2",
|
|
56
|
+
"@nuxt/test-utils": "^3.23.0",
|
|
57
|
+
"@types/node": "^25.0.7",
|
|
58
|
+
"changelogen": "^0.6.2",
|
|
59
|
+
"eslint": "^9.39.2",
|
|
60
|
+
"nuxt": "^4.2.2",
|
|
61
|
+
"nuxt-llms": "link:",
|
|
62
|
+
"typescript": "~5.9.3",
|
|
63
|
+
"vitest": "^4.0.17",
|
|
64
|
+
"vue-tsc": "^3.2.2"
|
|
58
65
|
},
|
|
59
|
-
"packageManager": "pnpm@10.
|
|
66
|
+
"packageManager": "pnpm@10.28.0"
|
|
60
67
|
}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { ModuleOptions } from '../dist/runtime/types.js';
|
|
3
|
-
export * from '../dist/runtime/types.js';
|
|
4
|
-
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
package/dist/types.d.ts
DELETED