vite-plugin-generoutes 0.2.10 → 0.2.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/dist/index.d.ts +6 -11
- package/dist/index.js +2 -2
- package/package.json +23 -23
package/dist/index.d.ts
CHANGED
|
@@ -12,30 +12,25 @@ interface Options {
|
|
|
12
12
|
/**
|
|
13
13
|
* pages folder
|
|
14
14
|
*
|
|
15
|
-
* default
|
|
15
|
+
* @default src/pages
|
|
16
16
|
*/
|
|
17
17
|
pagesFolder: string;
|
|
18
18
|
/**
|
|
19
|
-
* ignore folders
|
|
19
|
+
* ignore folders, ignore these folders when generating routes
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* default: `['components']`
|
|
21
|
+
* @default ['components']
|
|
24
22
|
*/
|
|
25
23
|
ignoreFolders: string[];
|
|
26
24
|
/**
|
|
27
|
-
* routes file path
|
|
28
|
-
*
|
|
29
|
-
* default: `src/router/routes.js`
|
|
30
|
-
*
|
|
31
|
-
* It can also be a ts file,such as `src/router/routes.ts`
|
|
25
|
+
* routes file path, It can also be a ts file,such as `src/router/routes.ts`
|
|
32
26
|
*
|
|
27
|
+
* @default src/router/routes.js
|
|
33
28
|
*/
|
|
34
29
|
routesPath: string;
|
|
35
30
|
/**
|
|
36
31
|
* nested routes
|
|
37
32
|
*
|
|
38
|
-
* default
|
|
33
|
+
* @default false
|
|
39
34
|
*/
|
|
40
35
|
nested: boolean;
|
|
41
36
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-generoutes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "0.2.11",
|
|
5
|
+
"packageManager": "pnpm@10.2.0",
|
|
6
6
|
"description": "A Vite plugin that generate routes based on the file structure, supports dynamic routes, and supports custom meta data for each route.",
|
|
7
7
|
"author": "Ronnie Zhang <zclzone@outlook.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -46,34 +46,34 @@
|
|
|
46
46
|
"up:deps": "taze major -I"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"vite": "^
|
|
49
|
+
"vite": "^6.1.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@antfu/utils": "^
|
|
53
|
-
"@vue/compiler-sfc": "^3.
|
|
54
|
-
"chalk": "^5.
|
|
55
|
-
"chokidar": "^
|
|
56
|
-
"fs-extra": "^11.
|
|
57
|
-
"glob": "^
|
|
58
|
-
"prettier": "^3.
|
|
52
|
+
"@antfu/utils": "^8.1.0",
|
|
53
|
+
"@vue/compiler-sfc": "^3.5.13",
|
|
54
|
+
"chalk": "^5.4.1",
|
|
55
|
+
"chokidar": "^4.0.3",
|
|
56
|
+
"fs-extra": "^11.3.0",
|
|
57
|
+
"glob": "^11.0.1",
|
|
58
|
+
"prettier": "^3.4.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@antfu/eslint-config": "^
|
|
62
|
-
"@antfu/ni": "^
|
|
61
|
+
"@antfu/eslint-config": "^4.1.1",
|
|
62
|
+
"@antfu/ni": "^23.3.1",
|
|
63
63
|
"@types/fs-extra": "^11.0.4",
|
|
64
|
-
"@types/node": "^20.
|
|
65
|
-
"bumpp": "^
|
|
66
|
-
"eslint": "^9.
|
|
67
|
-
"esno": "^4.
|
|
68
|
-
"lint-staged": "^15.
|
|
69
|
-
"pnpm": "^
|
|
64
|
+
"@types/node": "^20.17.17",
|
|
65
|
+
"bumpp": "^10.0.2",
|
|
66
|
+
"eslint": "^9.19.0",
|
|
67
|
+
"esno": "^4.8.0",
|
|
68
|
+
"lint-staged": "^15.4.3",
|
|
69
|
+
"pnpm": "^10.2.0",
|
|
70
70
|
"rimraf": "^5.0.10",
|
|
71
71
|
"simple-git-hooks": "^2.11.1",
|
|
72
|
-
"taze": "^
|
|
73
|
-
"tsup": "^8.
|
|
74
|
-
"typescript": "^5.
|
|
75
|
-
"unbuild": "^
|
|
76
|
-
"vitest": "^
|
|
72
|
+
"taze": "^18.4.0",
|
|
73
|
+
"tsup": "^8.3.6",
|
|
74
|
+
"typescript": "^5.7.3",
|
|
75
|
+
"unbuild": "^3.3.1",
|
|
76
|
+
"vitest": "^3.0.5"
|
|
77
77
|
},
|
|
78
78
|
"simple-git-hooks": {
|
|
79
79
|
"pre-commit": "pnpm lint-staged"
|