Create and Publish packages to npm - React Component Library using tsdx

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 92

  • @ahmedelnawawy2458
    @ahmedelnawawy2458 Рік тому

    All appreciation for your complete and excellent explanation

  • @DesignDensity
    @DesignDensity 3 роки тому +4

    Thank you, Bruno, you explain things in a very unique way, you absolutely put yourself in your viewers' shoes and explain from that perspective which is not something we could find with other UA-camrs, I'm glad I came across your this video to lead me to your channel.
    This channel deserves 100K+ subs. Thank you so much for the time and effort, Bruno. You now have 1 more subscriber 😊👌

  • @khoudiryaya3515
    @khoudiryaya3515 3 роки тому +2

    Thank you Bruno.
    great video. I've just published my first package.

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      That's very very nice, awesomeeee!!! 😀😀

  • @mhmtlgly
    @mhmtlgly 3 роки тому +1

    Obrigado Bruno. You are 1 in a million. Always happy. Take care my friend. Greetings Ali.

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Thank you my friend, you too are one in a million Ali! 😍😍😍

  • @bbrrsolutions
    @bbrrsolutions 2 роки тому

    Hi Bruno, excellent video, nice to know another Bruno also related with the web development,
    Continue with this excellent content,
    Cheers!
    Note: Mi name is also Bruno, maybe the account doesn't display it

  • @endizhupani2628
    @endizhupani2628 3 роки тому +1

    Wow, I spent hours trying to get the typescript components to publish on npm until I found this ang it done in 5 mins. Thanks!

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 2 роки тому

    I watched the whole video.
    And you explain very well.
    Thanks!

  • @codewithguillaume
    @codewithguillaume Рік тому

    Thanks Bruno :)

  • @ismoilshokirov
    @ismoilshokirov 3 роки тому +2

    Mr. Bruno Thank you so much for your lessons, they have really improved my skills during this last year.
    I am looking forward to a video about the testing of Next JS apps. Thank you

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Thank you 😍 testing will come sooner or later 😅

  • @sarnyaia1
    @sarnyaia1 2 роки тому +1

    It was a really helpful video!
    Thank you, very much!!!

  • @mansafamara
    @mansafamara Рік тому

    Bruno your skin is so smooth. why 😂 ~ I love your content though you’re a lifesaver

  • @ielijose
    @ielijose 3 роки тому +1

    Great video, thanks Bruno!

  • @juancarlosdelamarca4815
    @juancarlosdelamarca4815 3 роки тому +1

    Thanks! It works like a charm!

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      I'm very happy to read that Juan 😍😍 thank you ❤️

  • @Harsh-df9vp
    @Harsh-df9vp 3 роки тому +1

    Thank you soo much. You're a life saver.

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Very happy to read your comment 😍 thank you my friend 😊

  • @kanijo181920
    @kanijo181920 3 роки тому +1

    Grande bruno fazia tempo que nao via um video seu devido trabalho, por acaso to precisando criar uma biblioteca de components para projeto na empresa e olha cai em ti denovo, forte abraço amigo portugues !

    • @kanijo181920
      @kanijo181920 3 роки тому +1

      mas pelo amor de deus se voce gravar um video em portugues vou fica muito feliz :)

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Muito obrigado Kelvin =D
      Estou ha bastante tempo a pensar criar um canal em Portugues, mas nunca tive "coragem" de o fazer.
      Achas que as pessoas no Brasil percebem bem o sotaque de Portugal? (Este tem sido o meu maior medo de criar um canal em Portugues) =D

  • @fagundezantony2358
    @fagundezantony2358 3 роки тому +1

    Thanks for sharing! Great content! This utility (tsdx) it's awesome!!
    Grettings from Argentina!

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      I love it a lot 😍 every single time I create a new library at work this is my go-to choice 😊
      Love to Argentina 😍😍😍🇦🇷🇦🇷🇦🇷

  • @PabloGeokar
    @PabloGeokar 3 роки тому +1

    Muito bom Bruno, show de bola!

  • @kumarravi525
    @kumarravi525 3 роки тому +1

    you are awsome man☺☺👍👍

  • @narcissisticnarcissus4956
    @narcissisticnarcissus4956 3 роки тому +2

    Great! You could turn this into a mini series.

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Thank you 😀
      Next week I'll release a video publishing to npm using github actions and semantic-release. Can we call 2 videos "a mini series"? 😅😅

    • @narcissisticnarcissus4956
      @narcissisticnarcissus4956 3 роки тому +2

      @@BrunoAntunesPT I let it slide this time hehe

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      @@narcissisticnarcissus4956 ahahah 🤣🤣

  • @pranavpatel2810
    @pranavpatel2810 3 роки тому +1

    Amazing video man i was much in need of this but i don't know ts i only know js

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Awesome 😀
      If you are building a library that you want to share with other people I recommend TypeScript.
      If for nothing else, because people consuming your library will be expecting typings nowadays 😊

  • @monikapatel6464
    @monikapatel6464 3 роки тому +1

    Thanks @bruno for all your amazing videos. Can you please also make one on storybook ;)

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Thank you very much ❤️ I'll take the suggestion, but I will be honest, I have quite a few videos ahead of that one (sorry 😅😅)

  • @Gasshette
    @Gasshette 3 роки тому +1

    How to resume a week of pain trying to comprehend and adapt the outdated official storybook doc in less than 15minutes. Thanks a lot :)

  • @joshuafrankle9474
    @joshuafrankle9474 2 роки тому +1

    That's a great video. How do we add CSS? What are things that need to be changed in test.tsx?

  • @jahidunnurmaheeofficial2089

    Thanks for the amazing tutorial.
    I have question. I want to build an package that includes api fetching. Can I use rtk query here?

  • @pradella
    @pradella 3 роки тому +1

    Thanks Bruno! Such amazing presentation! It's helping me a lot! I was wondering if it's possible to add tsdx to an existing react-typescript project. I will try here!

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Thank you very much ❤️
      I only added tsdx to an existing project once. Usually I always start from fresh. At the time, honestly I found easier to create a new project, and "copy" the boilerplate - I'm sure there are smarter and more efficient ways to do it, but because I don't need that specific use case often, I never went deeper into the subject, sorry 😅

  • @ranjithvijayakumar4932
    @ranjithvijayakumar4932 3 роки тому

    Thanks for sharing, it's really awesome, can you do a demo for postcss in tsdx, I'm facing lot of issue

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      They have an example in the docs over here tsdx.io/customization
      Does this help? 😊

  • @mugiwaranoDave
    @mugiwaranoDave 3 роки тому +1

    Great one Bruno! How would I add styled-components so I could create my exported components with it?

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Thank you 😊
      You can use it normally in your components without any problem.
      The only detail is that in your package.json don't add it to dependencies. Add it in the peerDependencies and devDependencies 😊
      If you put it in dependencies then your library will bundle the full styled components with it, which you don't want, you want to use the version available in the users application 😊
      Keep the peer Dependency version very loose usually with > instead of ^ or ~ 😊

    • @mugiwaranoDave
      @mugiwaranoDave 3 роки тому +1

      @@BrunoAntunesPT You just saved me tons of time with it. TSDX is awesome and you are way more! Subscribed and will follow your content. Keep spreading knowledge and smiles Bruno. Thanks :)

    • @mugiwaranoDave
      @mugiwaranoDave 3 роки тому

      @@BrunoAntunesPT By the way, how can I make a website that looks like tsdx.io to share my librarie's documentation? Thanks

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      The tsdx website is a nextjs app using markdown for their pages.
      I have never looked into what they did, but luckily it is open source github.com/formium/tsdx/blob/master/website/pages/index.mdx 😍

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      This is the repository root github.com/formium/tsdx/tree/master/website

  • @subhranshudas8862
    @subhranshudas8862 2 роки тому

    Great explanation. Question what is the difference between using tsdx for build vs Rollup for build?

  • @maresstefan3391
    @maresstefan3391 2 роки тому

    Great video, but I've waited hours for tsdx to install the dependencies and nothing happened. I tested that I have a good and fast internet connection and that was not the issue

  • @sky_kryst
    @sky_kryst Рік тому

    Hey, how can I use this for a React Native Component library?

  • @saisagarsharma
    @saisagarsharma 3 роки тому +1

    where have u been? missed u ;)

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      I missed you too 😍 To be 100% honest with you, I have been very busy with other stuff outside of UA-cam 😅😅

  • @RandomMcLain
    @RandomMcLain 2 роки тому

    Hello, Bruno (and others too)! I had a problem trying to use ChakraUI on the TSDX react-with-storybook template, everything worked until I added chakra UI. Is anybody experimenting the same issue?
    By the way, thanks A LOT for the video Bruno, I spent days trying to build a component library by myself, and TSDX has everything I need out of the box, I never heard about this great tool. I just need it to work with ChakraUI

    • @BrunoAntunesPT
      @BrunoAntunesPT  2 роки тому

      To be honest with both of you I have never used chakra, so I don't know the limitations 🙂 I mostly use material-ui 🙂

  • @carlosivanmontesdiaz1491
    @carlosivanmontesdiaz1491 3 роки тому

    Hi, Does anyone know if it is possible to use FluentUi or MaterialUi and use them in the components of my library?

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Yes you can, just add those libraries as peerDependencies in your library - avoid putting them as dependencies and you will be good to go 😊

  • @franciscokloganb
    @franciscokloganb 2 роки тому

    Note of warning, tsdx is not maintained. Has not been update in two or three years. There is not replacement for it, but you get pretty close with "microbundle"

  • @mohdsajidshaikh4291
    @mohdsajidshaikh4291 3 роки тому

    See you after long time.
    Hey please explain how to implement ads like adsense, popads and jnfolinks in nextjs or react js.
    Because there are many requirements for placing ads on websites but adsence is possible but not everyone wants so please explain popads and infolinks so it's solved and easy for other also according to requirements.
    Please make it

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      I'm not currently using adsense, but I can point you to a place that might help you (hopefully)
      github.com/vercel/next.js/discussions/18801
      Let me know if that helps 😀😊

  • @finguerr
    @finguerr 3 роки тому

    if you want to use hooks into of your package, would you do ?? or you will have error of Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      I don't fully understand what you want to ask... Can you elaborate a bit more?
      If you want to ask about using hooks in a library, the rules are exactly the same as in using hooks in an application 😊
      You can use hooks inside components, or export custom hooks for people to use on their apps 😊
      Does this answer your question? 😊

  • @jahidunnurmaheeofficial2089

    How to run story book from here?

  • @Wakkyguy
    @Wakkyguy 3 роки тому

    Is there a js version of this?

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Tsdx only works with typescript 🙂

    • @Wakkyguy
      @Wakkyguy 3 роки тому

      @@BrunoAntunesPT is there any similar tool for javascript?

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      I think microbundle does, but I have never used it myself. Can I ask why you don't want to build your libraries in typescript? 🙂
      github.com/developit/microbundle

    • @Wakkyguy
      @Wakkyguy 3 роки тому +1

      @@BrunoAntunesPT project requirement, thanks!

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому +1

      Makes sense 🙂 give a try with microbundle I have heard very good things about it 🙂

  • @kumarravi525
    @kumarravi525 3 роки тому

    hello sir can you please make a library using typescript and use in react js like component different different component which belongs to library.... please help me i need your help thank you

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      If I understand correctly what you asked, that's exactly what we did in this Video.
      We created a library in React and typescript and published to npm.
      Now, that library can be consumed from react applications doing an npm install
      😊

    • @kumarravi525
      @kumarravi525 3 роки тому

      @@BrunoAntunesPT can we use in angular also or react only ?

    • @kumarravi525
      @kumarravi525 3 роки тому +1

      @@BrunoAntunesPT and thank you for quick reply 😊😊

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      I don't do angular for quite a while, but if I remember correctly they had something called the angular package format...
      If I'm not mistaken they have that built into the angular cli by now, but as I said, I don't angular for a very long time now 😊

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      angular.io/guide/creating-libraries

  • @EliuTimana
    @EliuTimana 3 роки тому

    TSDX and create-react-library are now deprecated

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Where did you see that tsdx is deprecated? 😊

    • @EliuTimana
      @EliuTimana 3 роки тому

      @@BrunoAntunesPT check the repo, it won't be maintained anymore, there is a fork btw

    • @BrunoAntunesPT
      @BrunoAntunesPT  3 роки тому

      Where did you see it will not be maintained anymore? Can you share some official info?
      I'm not saying you are wrong, I just want some confirmation from the creators that it's deprecated and I can't find anything 😊
      PS - Just because there are no commits recently, doesn't mean a repository or library is deprecated 😊

    • @BrunoAntunesPT
      @BrunoAntunesPT  2 роки тому

      Sadly the creator never replied on that thread - we should probably assume the silence as a sign it's deprecated 😅

    • @mukaofssn
      @mukaofssn 2 роки тому

      @@BrunoAntunesPT thanks for replying. It would be good if you could do a video for microbundle or such to consider as a replacement.

  • @elab4d140
    @elab4d140 Рік тому

    hhhhhhhhhhhhhhhhhhh wjeh zeb