Svelte 5 shipped with a really dope new CLI. Wanted to make a quick video going over it! Blog Post: svelte.dev/blo...
Пікірлер
@claytonkruse3 ай бұрын
Amazing. And just after I spent a week doing all this manually.
@tedspensАй бұрын
I only wish I could do all this manually 😂
@dei8bit3 ай бұрын
goodness gracious, it makes me so happy svelte! It simply made elbowing for me an unparalleled delight.
@notnotjake3 ай бұрын
on the one hand, having Lucia just be code that you can view and easily edit in your project is really nice, but it also means you can't just update it like you would with an actual npm package
@7heMech3 ай бұрын
That bun install was instant lol
@Silverstone26603 ай бұрын
Can we get a full svelte 5 tutorial it would be great man!!
@tedspensАй бұрын
Ditto that.
@keffbarn3 ай бұрын
U rock man, keep up the good work! Just subscribed 🍻
@jperusm3 ай бұрын
Hey Ben! Since Lucia is getting deprecated as a library, I started a small project with better-auth and the dev experience is so good! you should definitely give it a try :)
@Sp3cccc2 ай бұрын
Why not use Drizzle for auth?
@jperusm2 ай бұрын
@Sp3cccc drizzle is the ORM, you still have to implement your auth mechanism or use an adapter for an existing auth library
@Sp3cccc2 ай бұрын
@jperusm Yeah but using PostgreSQL adapter does give you this capability. And it’s fully free and opensource. I’m just curious why you spend saving Lucia? Seems to me you are must be very familiar with Lucia so I am curious about you’re opinion ^_^
@Sp3cccc2 ай бұрын
@@jperusm Yeah fs, I actually did that tho used Drizzle as ORM with Oslo + Lucia guide ^_^
@wizard_status6 күн бұрын
Now they added deploy-adapter too.
@naldiojoaquim89203 ай бұрын
The new sv CLI is amazing
@wyndmill3 ай бұрын
so glad I subscribed, good stuff
@TomislavMiletic2 ай бұрын
Isn't Lucia deprecated?
@rogerpence3 ай бұрын
To run 'sv' you need to have Svelte 5 installed globally, correct? Great video! Thank you. Can't wait for 'sv' docs!
@peesem3 ай бұрын
no. if you want to run sv without npx/bunx, you need to have sv installed globally. however, i would recommend always using "npx sv" or "bunx sv" so that you don't pollute your shell and always get the latest version of the package.
@rogerpence3 ай бұрын
@@peesem I thought sv is inside Svelte 5. How do you install sv globally?
@peesem3 ай бұрын
@@rogerpence same as any other package, npm install -g sv
@rogerpence3 ай бұрын
@@peesem Thank you! I thought I read that sv is bundled with Svelte 5. I was, to say the least, very confused. Thanks again.
@prashlovessamosa3 ай бұрын
Everything is good but why are they still recommending Lucia.
@jacobfunk7103 ай бұрын
I was wondering the exact same thing
@aveshlutchman85733 ай бұрын
It's because they're not specifically using the Lucia package but following the authentication guide from Lucia, which is better than just abstracting everything. It'll still work, but now the user has full control of their authentication pipeline. If you just want basic authentication then this would seem like overkill, although in that case you can leave the auth stuff mostly untouched, but if you have your own backend or need more out of your auth, then it's a godsend.
@prashlovessamosa3 ай бұрын
@@aveshlutchman8573 they could have used Better auth well rolling your own auth ain't that hard just take more work 🙄.
@tonyS8793 ай бұрын
What is wrong with Lucia?
@aveshlutchman85733 ай бұрын
@@prashlovessamosa rolling your auth is just better imo. It's more work but a lot of people have unique situations and auth works differently depending on the project. I use next-auth right now for example and I wish I had just rolled my own auth. I'm thinking about migrating sometime in the future but I just don't have the spare time. Now I have to deal with all the weird restrictions of it and suffer when I could've maybe spent a few hours more, got my own auth solution and save me more time in the long run as it would function exactly as I wanted. Rolling your own auth isn't for everyone obviously, some people just want basic auth, but for those that want advanced stuff or think their project scope may expand requiring more from your auth, doing it yourself is the way to go.
@phoneywheeze3 ай бұрын
it's laravel-esque. Would love to see if they implement support for MySQL, SQLite, mailing and oauth... then it would be extremely close laravel replacement
@Shaparder3 ай бұрын
Isnt Lucia getting sunsetted ?
@esquilo_atomico3 ай бұрын
kinda, and I think thats good lucia is going to a more raw strategy and I think that can be good for svelte now they can make a more phoenix like experience with their codegen
@adriablancafort3 ай бұрын
Amazing
@Sp3cccc2 ай бұрын
Yo amazing video, I legit copied you’re set-up kinda. I’m curious tho if you have ever created a fully custom full-stack application using Drizzle ORM for backend + front-end in a singular db. It just seems like such a cool approach to me, being able to move and deploy anywhere asap and no TOS bs right¿ ^_^
@cliffnjoro74103 ай бұрын
goodnight :)
@bmccorm23 ай бұрын
I see you run your project with "bun run dev." But i see on the bun website: "Then start the development server with bun --bun run dev. To run the dev server with Node.js instead of Bun, you can omit the --bun flag." Just wondering if this was intentional?
@rogerpence3 ай бұрын
Ben--Lucia has been retired. What are you gonna use in the future?
@0.amonymous3 ай бұрын
All the JavaScript code needed for secure auth is already there generated by sv. It won't be retired and the code won't ever stop working.
@rogerpence3 ай бұрын
@@0.amonymous "retired" may have been the wrong word, but from the GitHub repo from three weeks ago: "[Lucia] v3 will be maintained for another 6 months or so, though the adapters may be deprecated earlier."
@0.amonymous3 ай бұрын
@@rogerpence yeah I think having a maintained auth library option is good... Sad that they deprecated Lucia but tbh I tried to setup Lucia manually and I couldn't, Auth is so complex, good thing I can just use Auth starters from GitHub, I think Auth should be simpler to understand :/ lol
@stercorarius3 ай бұрын
theres no docs on how to select individual list items in the cli and i still dont know how to do it lol
@luca44793 ай бұрын
??? You mean pressing space?
@novaotp3 ай бұрын
Space to select/deselect and arrows keys to navigate
@eknayeem3 ай бұрын
looking good sir ♥
@aronjacobson54033 ай бұрын
4:47 vscopium 😭
@hexxt_3 ай бұрын
ngl i just am annoyed that the command changed
@hexxt_3 ай бұрын
wait it can set up tailwind count me in
@alexanderleschanz99912 ай бұрын
Very cool idea! Maybe just choose the people you collab with carefully, as many people say theo is full of him self and sht