├── .gitignore ├── CHANGELOG.md ├── README.md ├── docs └── article.md ├── example ├── .gitignore ├── App.vue ├── index.html ├── main.ts ├── package.json ├── pnpm-lock.yaml ├── src │ ├── router │ │ ├── index.ts │ │ ├── route-meta.js │ │ └── routes.d.ts │ └── views │ │ ├── about.vue │ │ ├── components │ │ └── Header.vue │ │ ├── exam │ │ ├── [courseId] │ │ │ ├── [chapterId] │ │ │ │ └── index.vue │ │ │ └── index.vue │ │ ├── _layout.vue │ │ └── index.vue │ │ ├── index.vue │ │ └── users │ │ ├── [id].vue │ │ ├── _layout.vue │ │ └── index.vue ├── style.css ├── tsconfig.json ├── tsconfig.node.json ├── vite-env.d.ts └── vite.config.ts ├── package.json ├── pnpm-lock.yaml ├── src ├── index.test.ts └── index.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/README.md -------------------------------------------------------------------------------- /docs/article.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/docs/article.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/App.vue -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/index.html -------------------------------------------------------------------------------- /example/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/main.ts -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/package.json -------------------------------------------------------------------------------- /example/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/pnpm-lock.yaml -------------------------------------------------------------------------------- /example/src/router/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/router/index.ts -------------------------------------------------------------------------------- /example/src/router/route-meta.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/router/route-meta.js -------------------------------------------------------------------------------- /example/src/router/routes.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/router/routes.d.ts -------------------------------------------------------------------------------- /example/src/views/about.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/about.vue -------------------------------------------------------------------------------- /example/src/views/components/Header.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/components/Header.vue -------------------------------------------------------------------------------- /example/src/views/exam/[courseId]/[chapterId]/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/exam/[courseId]/[chapterId]/index.vue -------------------------------------------------------------------------------- /example/src/views/exam/[courseId]/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/exam/[courseId]/index.vue -------------------------------------------------------------------------------- /example/src/views/exam/_layout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/exam/_layout.vue -------------------------------------------------------------------------------- /example/src/views/exam/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/exam/index.vue -------------------------------------------------------------------------------- /example/src/views/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/index.vue -------------------------------------------------------------------------------- /example/src/views/users/[id].vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/users/[id].vue -------------------------------------------------------------------------------- /example/src/views/users/_layout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/users/_layout.vue -------------------------------------------------------------------------------- /example/src/views/users/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/src/views/users/index.vue -------------------------------------------------------------------------------- /example/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/style.css -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/tsconfig.node.json -------------------------------------------------------------------------------- /example/vite-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/vite-env.d.ts -------------------------------------------------------------------------------- /example/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/example/vite.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/src/index.test.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhourusheng/vite-plugin-convention-routes/HEAD/vitest.config.ts --------------------------------------------------------------------------------