@stonecrop/nuxt 0.8.12 → 0.8.13
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/dist/module.d.mts +1 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -3
- package/package.json +9 -9
package/dist/module.d.mts
CHANGED
|
@@ -46,10 +46,9 @@ interface ParsedDoctype {
|
|
|
46
46
|
type RouteStrategyFn = (doctypes: ParsedDoctype[]) => NuxtPage[];
|
|
47
47
|
|
|
48
48
|
interface ModuleOptions {
|
|
49
|
-
router?: Record<string, unknown>;
|
|
50
49
|
/** Enable the DocBuilder feature with /docbuilder routes */
|
|
51
50
|
docbuilder?: boolean;
|
|
52
|
-
/** Path to doctypes folder (defaults to 'doctypes'
|
|
51
|
+
/** Path to doctypes folder relative to srcDir (defaults to 'doctypes', resolving to app/doctypes) */
|
|
53
52
|
doctypesDir?: string;
|
|
54
53
|
/**
|
|
55
54
|
* Path to the page component used for default slug-based routing.
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -65,9 +65,8 @@ const module$1 = defineNuxtModule({
|
|
|
65
65
|
},
|
|
66
66
|
defaults: (_nuxt) => {
|
|
67
67
|
return {
|
|
68
|
-
router: {},
|
|
69
68
|
docbuilder: false,
|
|
70
|
-
doctypesDir:
|
|
69
|
+
doctypesDir: "doctypes"
|
|
71
70
|
};
|
|
72
71
|
},
|
|
73
72
|
async setup(options, nuxt) {
|
|
@@ -101,7 +100,7 @@ const module$1 = defineNuxtModule({
|
|
|
101
100
|
const homepage = resolve(layoutsDir, "StonecropHome.vue");
|
|
102
101
|
addLayout(homepage, "home");
|
|
103
102
|
const appDir = nuxt.options.srcDir;
|
|
104
|
-
const doctypesDir = resolve(appDir, "doctypes");
|
|
103
|
+
const doctypesDir = resolve(appDir, options.doctypesDir ?? "doctypes");
|
|
105
104
|
if (existsSync(doctypesDir)) {
|
|
106
105
|
try {
|
|
107
106
|
const dirContents = await readdir(doctypesDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13",
|
|
4
4
|
"description": "Nuxt module for Stonecrop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"jiti": "^2.4.2",
|
|
45
45
|
"pathe": "^2.0.3",
|
|
46
46
|
"prompts": "^2.4.2",
|
|
47
|
-
"@stonecrop/
|
|
48
|
-
"@stonecrop/
|
|
49
|
-
"@stonecrop/
|
|
50
|
-
"@stonecrop/
|
|
51
|
-
"@stonecrop/graphql-middleware": "0.8.
|
|
52
|
-
"@stonecrop/nuxt-grafserv": "0.8.
|
|
53
|
-
"@stonecrop/
|
|
54
|
-
"@stonecrop/
|
|
47
|
+
"@stonecrop/atable": "0.8.13",
|
|
48
|
+
"@stonecrop/node-editor": "0.8.13",
|
|
49
|
+
"@stonecrop/aform": "0.8.13",
|
|
50
|
+
"@stonecrop/casl-middleware": "0.8.13",
|
|
51
|
+
"@stonecrop/graphql-middleware": "0.8.13",
|
|
52
|
+
"@stonecrop/nuxt-grafserv": "0.8.13",
|
|
53
|
+
"@stonecrop/schema": "0.8.13",
|
|
54
|
+
"@stonecrop/stonecrop": "0.8.13"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@eslint/js": "^9.39.2",
|