├── .github └── workflows │ ├── claude-code-review.yml │ └── claude.yml ├── .gitignore ├── AGENTS.md ├── CLAUDE.md ├── LICENSE ├── README.md ├── package.json ├── pnpm-lock.yaml ├── prettier.config.js ├── src ├── core │ ├── index.ts │ ├── routing │ │ ├── constants.ts │ │ ├── files.ts │ │ ├── index.ts │ │ ├── segments.ts │ │ ├── structure.ts │ │ └── utils.ts │ └── types.ts ├── fs │ └── visit-files.ts ├── index.ts ├── migration │ ├── cli.ts │ ├── cli │ │ ├── diff.ts │ │ ├── route-entry.ts │ │ ├── run-cli.ts │ │ └── runner.ts │ ├── constants.ts │ ├── create-routes-from-folders.ts │ ├── fs-helpers.ts │ ├── import-rewriter.ts │ ├── logger.ts │ ├── migrate.ts │ ├── normalizers.ts │ ├── route-definition.ts │ └── route-scanner.ts └── utils.ts ├── test ├── filesystem-behavior.test.ts ├── fixtures │ └── symlinks │ │ ├── routes-link │ │ └── routes │ │ └── admin.tsx ├── fs-visit-files.test.ts ├── migrate-cli.test.ts ├── migration-convert-to-route.test.ts ├── migration-create-route-path.test.ts ├── migration-fs-helpers.test.ts ├── migration-import-rewriter.test.ts ├── options-and-detection.test.ts ├── routes-structure.test.ts └── utils │ ├── route-test-helpers.ts │ └── tmp-workspace.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.github/workflows/claude-code-review.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/.github/workflows/claude-code-review.yml -------------------------------------------------------------------------------- /.github/workflows/claude.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/.github/workflows/claude.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/.gitignore -------------------------------------------------------------------------------- /AGENTS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/AGENTS.md -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- 1 | AGENTS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/index.ts -------------------------------------------------------------------------------- /src/core/routing/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/constants.ts -------------------------------------------------------------------------------- /src/core/routing/files.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/files.ts -------------------------------------------------------------------------------- /src/core/routing/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/index.ts -------------------------------------------------------------------------------- /src/core/routing/segments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/segments.ts -------------------------------------------------------------------------------- /src/core/routing/structure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/structure.ts -------------------------------------------------------------------------------- /src/core/routing/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/routing/utils.ts -------------------------------------------------------------------------------- /src/core/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/core/types.ts -------------------------------------------------------------------------------- /src/fs/visit-files.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/fs/visit-files.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/migration/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/cli.ts -------------------------------------------------------------------------------- /src/migration/cli/diff.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/cli/diff.ts -------------------------------------------------------------------------------- /src/migration/cli/route-entry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/cli/route-entry.ts -------------------------------------------------------------------------------- /src/migration/cli/run-cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/cli/run-cli.ts -------------------------------------------------------------------------------- /src/migration/cli/runner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/cli/runner.ts -------------------------------------------------------------------------------- /src/migration/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/constants.ts -------------------------------------------------------------------------------- /src/migration/create-routes-from-folders.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/create-routes-from-folders.ts -------------------------------------------------------------------------------- /src/migration/fs-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/fs-helpers.ts -------------------------------------------------------------------------------- /src/migration/import-rewriter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/import-rewriter.ts -------------------------------------------------------------------------------- /src/migration/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/logger.ts -------------------------------------------------------------------------------- /src/migration/migrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/migrate.ts -------------------------------------------------------------------------------- /src/migration/normalizers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/normalizers.ts -------------------------------------------------------------------------------- /src/migration/route-definition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/route-definition.ts -------------------------------------------------------------------------------- /src/migration/route-scanner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/migration/route-scanner.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/filesystem-behavior.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/filesystem-behavior.test.ts -------------------------------------------------------------------------------- /test/fixtures/symlinks/routes-link: -------------------------------------------------------------------------------- 1 | routes -------------------------------------------------------------------------------- /test/fixtures/symlinks/routes/admin.tsx: -------------------------------------------------------------------------------- 1 | export default function Admin() { 2 | return null 3 | } 4 | -------------------------------------------------------------------------------- /test/fs-visit-files.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/fs-visit-files.test.ts -------------------------------------------------------------------------------- /test/migrate-cli.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/migrate-cli.test.ts -------------------------------------------------------------------------------- /test/migration-convert-to-route.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/migration-convert-to-route.test.ts -------------------------------------------------------------------------------- /test/migration-create-route-path.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/migration-create-route-path.test.ts -------------------------------------------------------------------------------- /test/migration-fs-helpers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/migration-fs-helpers.test.ts -------------------------------------------------------------------------------- /test/migration-import-rewriter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/migration-import-rewriter.test.ts -------------------------------------------------------------------------------- /test/options-and-detection.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/options-and-detection.test.ts -------------------------------------------------------------------------------- /test/routes-structure.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/routes-structure.test.ts -------------------------------------------------------------------------------- /test/utils/route-test-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/utils/route-test-helpers.ts -------------------------------------------------------------------------------- /test/utils/tmp-workspace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/test/utils/tmp-workspace.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/react-router-auto-routes/HEAD/vitest.config.ts --------------------------------------------------------------------------------