-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add SvelteKit route detection to node types #1
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Summary
FlowMaster currently supports Next.js and Astro route detection, but SvelteKit projects are not fully recognized. SvelteKit uses a file-based routing system under src/routes/ with conventions like +page.svelte, +layout.svelte, +server.ts, and +page.server.ts.
What needs to happen
- Detect SvelteKit projects (look for
svelte.config.jsorsvelte.config.ts) - Parse
src/routes/directory structure - Map SvelteKit route files to appropriate node types:
+page.svelte→ Page node+layout.svelte→ Layout node+server.ts→ API endpoint node+page.server.ts→ Server load function node+error.svelte→ Error boundary node
- Handle route groups
(group)and parameter routes[param]
Relevant files
flowmaster.md— the skill file where node types and detection logic are defined
Getting started
- Read through
flowmaster.mdto understand existing node type definitions - Look at how Next.js routes are currently detected as a reference
- Add SvelteKit-specific patterns following the same conventions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers