├── dev
├── src
│ ├── routes
│ │ ├── posts
│ │ │ ├── z.tsx
│ │ │ ├── ooo
│ │ │ │ ├── p.tsx
│ │ │ │ ├── index.tsx
│ │ │ │ └── [[optional]]
│ │ │ │ │ ├── index.tsx
│ │ │ │ │ └── test.tsx
│ │ │ ├── t.tsx
│ │ │ ├── [slug].tsx
│ │ │ ├── ooo.tsx
│ │ │ └── index.tsx
│ │ ├── route-slash.tsx
│ │ ├── multiple
│ │ │ ├── [third]
│ │ │ │ └── edit.tsx
│ │ │ └── [first]
│ │ │ │ └── [second]
│ │ │ │ └── [third].tsx
│ │ ├── manifest.json.tsx
│ │ ├── api
│ │ │ ├── test.ts
│ │ │ └── sitemap.ts
│ │ ├── (routeGroupAbout).tsx
│ │ ├── auth(layout).tsx
│ │ ├── auth(layout)
│ │ │ └── abc.tsx
│ │ ├── index.tsx
│ │ ├── (routeGroupAbout)
│ │ │ └── about.tsx
│ │ └── [...404].tsx
│ ├── global.d.ts
│ ├── entry-client.tsx
│ ├── components
│ │ ├── Counter.tsx
│ │ └── Counter.css
│ ├── entry-server.tsx
│ ├── app.css
│ ├── app.tsx
│ └── RouteManifest
│ │ ├── index.d.ts
│ │ └── index.js
├── public
│ └── favicon.ico
├── app.config.ts
├── .gitignore
├── package.json
├── tsconfig.json
├── README.md
└── test.txt
├── .DS_Store
├── .vscode
└── extensions.json
├── .gitignore
├── .editorconfig
├── .prettierrc
├── src
├── index.ts
├── plugin.ts
├── utils.ts
└── routeManifest.ts
├── .changeset
├── config.json
└── README.md
├── tsup.config.ts
├── env.d.ts
├── tsconfig.json
├── CHANGELOG.md
├── .eslintrc
├── .github
├── ISSUE_TEMPLATE
│ ├── feature-request.yml
│ └── bug-report.yml
└── workflows
│ └── publish.yml
├── LICENSE
├── package.json
├── test
└── index.test.ts
├── README.md
└── pnpm-lock.yaml
/dev/src/routes/posts/z.tsx:
--------------------------------------------------------------------------------
1 | export default () => 'z';
2 |
--------------------------------------------------------------------------------
/dev/src/routes/posts/ooo/p.tsx:
--------------------------------------------------------------------------------
1 | export default () => 'p';
2 |
--------------------------------------------------------------------------------
/dev/src/routes/route-slash.tsx:
--------------------------------------------------------------------------------
1 | export default () => '';
2 |
--------------------------------------------------------------------------------
/dev/src/global.d.ts:
--------------------------------------------------------------------------------
1 | ///
abC
14 | > 15 | ); 16 | }; 17 | export default AboutPage; 18 | -------------------------------------------------------------------------------- /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /dev/src/routes/api/sitemap.ts: -------------------------------------------------------------------------------- 1 | import { json } from "@solidjs/router"; 2 | import { getRoutes } from "../../../../src/utils"; 3 | import { createSitemap } from "../../../../src/index"; 4 | export const GET = async () => { 5 | try { 6 | const routes = await getRoutes(); 7 | await createSitemap({ 8 | hostname: process.env.NITRO_HOST || "http://localhost:3000", 9 | replaceRouteParams: { ":id": [1, 2, 3, "test"], ":locale": ["en", "de"] }, 10 | }); 11 | 12 | return json(routes); 13 | } catch (e) { 14 | console.log(e); 15 | 16 | return new Response("Error", { status: 500 }); 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | "target": "ESNext", 5 | "module": "ESNext", 6 | "lib": ["DOM", "DOM.Iterable", "ESNext"], 7 | "moduleResolution": "bundler", 8 | "resolveJsonModule": true, 9 | "esModuleInterop": true, 10 | "noEmit": true, 11 | "isolatedModules": true, 12 | "skipLibCheck": true, 13 | "allowSyntheticDefaultImports": true, 14 | "forceConsistentCasingInFileNames": true, 15 | "noUncheckedIndexedAccess": true, 16 | "jsx": "preserve", 17 | "jsxImportSource": "solid-js" 18 | }, 19 | "exclude": ["node_modules", "dist", "./dev"] 20 | } 21 | -------------------------------------------------------------------------------- /dev/src/entry-server.tsx: -------------------------------------------------------------------------------- 1 | // @refresh reload 2 | import { createHandler, StartServer } from "@solidjs/start/server"; 3 | 4 | export default createHandler(() => ( 5 |{JSON.stringify(routes()?.map(r => r.path), undefined, 2)} */}
13 | {/* {JSON.stringify(generateRouteManifest(fileRoutes), undefined, 2)}
*/} 14 | asdasda
16 | Time:
17 |
8 | Visit{" "} 9 | 10 | solidjs.com 11 | {" "} 12 | to learn how to build Solid apps. 13 |
14 |15 | 16 | Home 17 | 18 | {" - "} 19 | 20 | About Page 21 | 22 |
23 |
2 |
3 |