The Svelte Team Made the Best CLI

  Рет қаралды 9,085

Ben Davis

Ben Davis

Күн бұрын

Svelte 5 shipped with a really dope new CLI. Wanted to make a quick video going over it!
Blog Post: svelte.dev/blo...

Пікірлер
@claytonkruse
@claytonkruse 3 ай бұрын
Amazing. And just after I spent a week doing all this manually.
@tedspens
@tedspens Ай бұрын
I only wish I could do all this manually 😂
@dei8bit
@dei8bit 3 ай бұрын
goodness gracious, it makes me so happy svelte! It simply made elbowing for me an unparalleled delight.
@notnotjake
@notnotjake 3 ай бұрын
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
@7heMech
@7heMech 3 ай бұрын
That bun install was instant lol
@Silverstone2660
@Silverstone2660 3 ай бұрын
Can we get a full svelte 5 tutorial it would be great man!!
@tedspens
@tedspens Ай бұрын
Ditto that.
@keffbarn
@keffbarn 3 ай бұрын
U rock man, keep up the good work! Just subscribed 🍻
@jperusm
@jperusm 3 ай бұрын
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 :)
@Sp3cccc
@Sp3cccc 2 ай бұрын
Why not use Drizzle for auth?
@jperusm
@jperusm 2 ай бұрын
@Sp3cccc drizzle is the ORM, you still have to implement your auth mechanism or use an adapter for an existing auth library
@Sp3cccc
@Sp3cccc 2 ай бұрын
@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 ^_^
@Sp3cccc
@Sp3cccc 2 ай бұрын
@@jperusm Yeah fs, I actually did that tho used Drizzle as ORM with Oslo + Lucia guide ^_^
@wizard_status
@wizard_status 6 күн бұрын
Now they added deploy-adapter too.
@naldiojoaquim8920
@naldiojoaquim8920 3 ай бұрын
The new sv CLI is amazing
@wyndmill
@wyndmill 3 ай бұрын
so glad I subscribed, good stuff
@TomislavMiletic
@TomislavMiletic 2 ай бұрын
Isn't Lucia deprecated?
@rogerpence
@rogerpence 3 ай бұрын
To run 'sv' you need to have Svelte 5 installed globally, correct? Great video! Thank you. Can't wait for 'sv' docs!
@peesem
@peesem 3 ай бұрын
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.
@rogerpence
@rogerpence 3 ай бұрын
@@peesem I thought sv is inside Svelte 5. How do you install sv globally?
@peesem
@peesem 3 ай бұрын
@@rogerpence same as any other package, npm install -g sv
@rogerpence
@rogerpence 3 ай бұрын
@@peesem Thank you! I thought I read that sv is bundled with Svelte 5. I was, to say the least, very confused. Thanks again.
@prashlovessamosa
@prashlovessamosa 3 ай бұрын
Everything is good but why are they still recommending Lucia.
@jacobfunk710
@jacobfunk710 3 ай бұрын
I was wondering the exact same thing
@aveshlutchman8573
@aveshlutchman8573 3 ай бұрын
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.
@prashlovessamosa
@prashlovessamosa 3 ай бұрын
@@aveshlutchman8573 they could have used Better auth well rolling your own auth ain't that hard just take more work 🙄.
@tonyS879
@tonyS879 3 ай бұрын
What is wrong with Lucia?
@aveshlutchman8573
@aveshlutchman8573 3 ай бұрын
@@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.
@phoneywheeze
@phoneywheeze 3 ай бұрын
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
@Shaparder
@Shaparder 3 ай бұрын
Isnt Lucia getting sunsetted ?
@esquilo_atomico
@esquilo_atomico 3 ай бұрын
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
@adriablancafort
@adriablancafort 3 ай бұрын
Amazing
@Sp3cccc
@Sp3cccc 2 ай бұрын
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¿ ^_^
@cliffnjoro7410
@cliffnjoro7410 3 ай бұрын
goodnight :)
@bmccorm2
@bmccorm2 3 ай бұрын
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?
@rogerpence
@rogerpence 3 ай бұрын
Ben--Lucia has been retired. What are you gonna use in the future?
@0.amonymous
@0.amonymous 3 ай бұрын
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.
@rogerpence
@rogerpence 3 ай бұрын
@@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.amonymous
@0.amonymous 3 ай бұрын
@@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
@stercorarius
@stercorarius 3 ай бұрын
theres no docs on how to select individual list items in the cli and i still dont know how to do it lol
@luca4479
@luca4479 3 ай бұрын
??? You mean pressing space?
@novaotp
@novaotp 3 ай бұрын
Space to select/deselect and arrows keys to navigate
@eknayeem
@eknayeem 3 ай бұрын
looking good sir ♥
@aronjacobson5403
@aronjacobson5403 3 ай бұрын
4:47 vscopium 😭
@hexxt_
@hexxt_ 3 ай бұрын
ngl i just am annoyed that the command changed
@hexxt_
@hexxt_ 3 ай бұрын
wait it can set up tailwind count me in
@alexanderleschanz9991
@alexanderleschanz9991 2 ай бұрын
Very cool idea! Maybe just choose the people you collab with carefully, as many people say theo is full of him self and sht
Master The Svelte Context API
18:07
Joy of Code
Рет қаралды 10 М.
Svelte 5 Ruined Svelte (and that's why I love it)
12:37
Ben Davis
Рет қаралды 14 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
4 Key Meta Ads Testing Principles You Need to Know!
13:40
Michael Diaz
Рет қаралды 248
The Most Over-engineered Stack I Actually Shipped
8:40
Ben Davis
Рет қаралды 589
Svelte 5: In Action | Build A Tasks App
21:40
Syntax
Рет қаралды 11 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 212 М.
Sveltekit Data Fetching in 2024 Explained
19:59
Ben Davis
Рет қаралды 12 М.
Svelte 5: New and Improved by Rich Harris
49:04
Fabian Hiller
Рет қаралды 13 М.
20 Svelte Features You Missed During Advent Of Svelte
20:07
Joy of Code
Рет қаралды 12 М.
I Tried Every Svelte UI Library
20:57
Joy of Code
Рет қаралды 56 М.
Svelte UI Libraries Have Leveled Up
12:14
Huntabyte
Рет қаралды 65 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН