How To Make and Publish a Svelte Library - Weekly Svelte

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2021
  • 1. npm init svelte@next project-name
    2. cd project-name
    3. Create component
    4. npx svelte-kit package
    5. cd package
    6. Login to npm / create an account
    7. npm publish --access public
    Become a Level Up Pro and take your web skills to the next level!
    www.leveluptutorials.com/pro?...
    Svelte for Beginners
    leveluptutorials.com/tutorial...
    The best web development podcast out there
    Syntax with Wes Bos and Scott Tolinski
    syntax.fm

Комментарии • 27

  • @KevinVandyTech
    @KevinVandyTech 2 года назад +10

    Can't wait to hear your talk tomorrow at Svelte Summit

  • @diegomarzo4001
    @diegomarzo4001 Год назад

    Thank you so much for such a great video. It is lovely how the Svelte guys have improved so much the tools that all the small things you needed to do in the video are not required anymore.

  • @maskman4821
    @maskman4821 2 года назад +2

    Thank you sir for creating this tutorial, very useful and practical, awesome 🤩

  • @kiyoshitanaka4023
    @kiyoshitanaka4023 2 года назад +2

    It feels like SvelteKit, Remix, Next and so on are completely taking over the web. Can you do more in depth tutorial on server-side rendering and how it can replace Singe Page Apps?

  •  2 года назад +1

    thank you for the great tutos like always

  • @Metruzanca
    @Metruzanca 2 года назад

    This is really great! Now I can publish my svelte modal!

  • @syntaxfm
    @syntaxfm  2 года назад +2

    You can find the published library here: github.com/leveluptuts/auto-form
    It's still in flux, but def usable. I'm sure there are many issues although we are using it on leveluptutorials.com . File issues and prs if you want to get involved.

  • @michaelrandazzo3959
    @michaelrandazzo3959 Год назад

    That's amazing. I'll make it a goal to publish to NPM!

  • @alwayzsmarter
    @alwayzsmarter 2 года назад

    Can a store in your package be used like a store in your app when u import that package. It seems finicky for me

  • @RichardDavenport
    @RichardDavenport 2 года назад +1

    I love you Scott!

  • @techdebt7560
    @techdebt7560 2 года назад

    This is easily the most exciting thing to happen to JavaScript since ES6.

  • @snailedlt
    @snailedlt 2 года назад

    How do you get the version number in your terminal?

  • @Crossnake
    @Crossnake 2 года назад

    Excellent video

  • @funcmethod
    @funcmethod 2 года назад +1

    Super easy!

  • @Mr.x.187
    @Mr.x.187 2 года назад

    What theme are you using?

  • @alwayzsmarter
    @alwayzsmarter 2 года назад +1

    Ok I've been stuck on this since last night but just realized wasnt working cause I was importing like import { AutoForm } from instead of import AutoForm. Can you not do it like { AutoForm, SubButton } lets say if have multiple components?

    • @mbparvezme
      @mbparvezme 2 года назад +1

      I'm dealing with the same issue! What if I have multiple components? Did you manage to get the solution?

    • @justinoneill2837
      @justinoneill2837 Год назад

      @@mbparvezme hey I'm curious about this too! did you find a solution??

  • @michongoma7598
    @michongoma7598 2 года назад

    That was easy!

  • @alwayzsmarter
    @alwayzsmarter 2 года назад +1

    Can u add actions to package? Or what about global css variables like idk -error-red-color

    • @syntaxfm
      @syntaxfm  2 года назад +1

      Yep! Any of those shoud be fine. We have an action package ourselves

    • @alwayzsmarter
      @alwayzsmarter 2 года назад

      Im not sure that the :global css stuff works

  • @viralmedia3315
    @viralmedia3315 2 года назад

    Hey I have 1 svelte kit app I want to use that app in my current on going svelte kit app .How to integrate with all functionality like stores and routing?

  • @jwickerszh
    @jwickerszh 2 года назад +1

    Why do a sveltekit package instead of just a svelte package?

  • @ryan_roga
    @ryan_roga 2 года назад

    4:10 Why doesn't mine work like this? I have created exactly what you have above, but it's not recognizing '$lib/components/asdfasf' paths at all. 🤷‍♂ What gives??

    • @ryan_roga
      @ryan_roga 2 года назад

      Apparently Run npm i and restart your TypeScript server. BUT WHY does it do that!? 🤦‍♂