-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder Structure & Best Practices #183
Comments
Thanks for sharing your thought process, bear in mind community adders are currently not supported (see #184) Regarding number 1: As for the folder structure we will probably stick to the alias for If you have any further thoughts, please let us know! |
Thank you for sharing. I would always add I have a stronger opinion (which is open for debate, no problem) about keeping features in one place as much as possible. In the Lucia example, some code is already spread across At the same time, I understand that 10 developers will bring 11 different folder structures 😅. Like with routes and I also agree that Oh, one more thing! I’d love to have One community plugin could, of course, be my vite-plugin-kit-routes, but it might be better to revive sveltejs/kit#11406! Now that Svelte 5 is out, maybe I should take a look at this, and kill the plugin (that is a must to all apps 😉!) |
I think you have mainly answered the question yourself with this:
If we don't consider the possible alias-locations I do think that everything is exactly in the right place. We should also consider @AdrianGonz97 comment in #185 (comment), indicating the But I'd also love to hear input from the other folks. Regarding the |
Just found it sveltejs/kit#11335 I don't know if you want to gather inputs from others here or not? Feel free to close the issue when needed. |
First off, thank you for
sv
, is was a nice surprise!I'm about to start a
community
template, but before starting I would like to know if you have already some "rules" in mind? Or it will come with doing ?1/
hooks.server.ts
What about enforcing
sequence
and importinghandle
from the corresponding template?I feel that any application will need this
sequence
and it would probably ease the installation of other template.Example with
auth
:2/ Folders structure
./src/lib/server/auth.ts
vs./src/server/auth.ts
vs./src/modules/auth/server.ts
Of course, everyone is able to do what he want after, but I'm wondering if we could put people in the right track from the start?
If we start to have a lot of community integration, having the same style would also be beneficial.
I'm using this structure in my app and find it quite convenient
Like this, I also use
$lib
and$modules
Let me know what do you think, I'll be happy to help building this view.
The text was updated successfully, but these errors were encountered: