UNPKG

vite-plugin-convention-routes

Version:

一个类似Umi的约定式路由Vite插件,自动根据文件结构生成路由配置,支持多级动态路由参数、布局组件、元数据和懒加载

55 lines 1.41 kB
{ "name": "vite-plugin-convention-routes", "version": "0.5.0", "description": "一个类似Umi的约定式路由Vite插件,自动根据文件结构生成路由配置,支持多级动态路由参数、布局组件、元数据和懒加载", "type": "module", "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "repository": { "type": "git", "url": "https://github.com/zhourusheng/vite-plugin-convention-routes.git" }, "homepage": "https://github.com/zhourusheng/vite-plugin-convention-routes", "bugs": { "url": "https://github.com/zhourusheng/vite-plugin-convention-routes/issues" }, "scripts": { "dev": "tsup --watch", "build": "tsup", "test": "vitest run", "test:watch": "vitest", "lint": "eslint src --ext .ts", "prepublishOnly": "pnpm run build" }, "keywords": [ "vite", "vite-plugin", "routes", "convention-routes", "file-system-routes", "vue-router", "nested-routes", "dynamic-routes", "layout-routes", "lazy-loading", "route-meta", "meta-data" ], "author": "", "license": "MIT", "peerDependencies": { "vite": "^4.0.0 || ^5.0.0 || ^6.0.0" }, "devDependencies": { "@types/node": "^24.0.3", "eslint": "^9.29.0", "tsup": "^8.5.0", "typescript": "^5.8.3", "vite": "^6.3.5", "vitest": "^3.2.4" } }