Closed pixelmund closed 2 years ago
Yeah, I have also thought about this issue.
I hid the "unwanted" files in VS Code, however, this is not generalizable to all cases. Additionally, this is also relatively prone to errors, especially if working in teams where a member may edit a generated file and thus causing problems in the long run.
A temporary solution is to edit the vscode settings or create a /.vscode/settings.json
file with the following content:
{
"files.exclude": {
"src/routes/**/*.ts": true,
"src/routes/**/*.js": true,
"src/routes/api/**/*.js": false,
"src/routes/api/**/*.ts": false
}
}
The api folder would contain anything that you wan't to handle with Standalone SvelteKit and yes @Acmion this is unfortunate.
Remix added support for Vue, and now have an open PR for Svelte fyi
Describe the bug
The situation is a bit tricky, we're currently using/generating SvelteKit Endpoints next to the files, but this can quickly sum up to a lot of files. I don't know if there is a way to avoid generating them while still using the functionality. This should probably belong to Kit, but i'm not sure what a solution in Kit would look like.
We could also leave it the way it is currently.
Your Example Website or App
-
Steps to Reproduce the Bug or Issue
-
Expected behavior
We shouldn't create the endpoints visible to the user.
Screenshots or Videos
-
Platform
-
Additional context
-