No video

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

  Рет қаралды 17,076

Bruno Antunes

Bruno Antunes

Күн бұрын

Пікірлер: 92
@mansafamara
@mansafamara 9 ай бұрын
Bruno your skin is so smooth. why 😂 ~ I love your content though you’re a lifesaver
@codewithguillaume
@codewithguillaume 6 ай бұрын
Thanks Bruno :)
@DesignDensity
@DesignDensity 2 жыл бұрын
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 KZbinrs, 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 😊👌
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Thank you very much 😍😍❤️
@somerandomchannel382
@somerandomchannel382 2 жыл бұрын
+1
@khoudiryaya3515
@khoudiryaya3515 3 жыл бұрын
Thank you Bruno. great video. I've just published my first package.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
That's very very nice, awesomeeee!!! 😀😀
@ahmedelnawawy2458
@ahmedelnawawy2458 11 ай бұрын
All appreciation for your complete and excellent explanation
@endizhupani2628
@endizhupani2628 3 жыл бұрын
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!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Glad it helped my friend! =D
@mhmtlgly
@mhmtlgly 3 жыл бұрын
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! 😍😍😍
@fagundezantony2358
@fagundezantony2358 3 жыл бұрын
Thanks for sharing! Great content! This utility (tsdx) it's awesome!! Grettings from Argentina!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
I love it a lot 😍 every single time I create a new library at work this is my go-to choice 😊 Love to Argentina 😍😍😍🇦🇷🇦🇷🇦🇷
@ismoilshokirov
@ismoilshokirov 3 жыл бұрын
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 😅
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 Жыл бұрын
I watched the whole video. And you explain very well. Thanks!
@bbrrsolutions
@bbrrsolutions Жыл бұрын
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
@sarnyaia1
@sarnyaia1 2 жыл бұрын
It was a really helpful video! Thank you, very much!!!
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Thank you
@monikapatel6464
@monikapatel6464 3 жыл бұрын
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 😅😅)
@kanijo181920
@kanijo181920 3 жыл бұрын
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 жыл бұрын
mas pelo amor de deus se voce gravar um video em portugues vou fica muito feliz :)
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
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
@joshuafrankle9474
@joshuafrankle9474 2 жыл бұрын
That's a great video. How do we add CSS? What are things that need to be changed in test.tsx?
@Harsh-df9vp
@Harsh-df9vp 3 жыл бұрын
Thank you soo much. You're a life saver.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Very happy to read your comment 😍 thank you my friend 😊
@narcissisticnarcissus4956
@narcissisticnarcissus4956 3 жыл бұрын
Great! You could turn this into a mini series.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
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 жыл бұрын
@@BrunoAntunesPT I let it slide this time hehe
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
@@narcissisticnarcissus4956 ahahah 🤣🤣
@ielijose
@ielijose 3 жыл бұрын
Great video, thanks Bruno!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you my friend 😀
@Gasshette
@Gasshette 2 жыл бұрын
How to resume a week of pain trying to comprehend and adapt the outdated official storybook doc in less than 15minutes. Thanks a lot :)
@pranavpatel2810
@pranavpatel2810 3 жыл бұрын
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 😊
@juancarlosdelamarca4815
@juancarlosdelamarca4815 3 жыл бұрын
Thanks! It works like a charm!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
I'm very happy to read that Juan 😍😍 thank you ❤️
@PabloGeokar
@PabloGeokar 3 жыл бұрын
Muito bom Bruno, show de bola!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Muito obrigado Pablo 😍😉😉
@kumarravi525
@kumarravi525 3 жыл бұрын
you are awsome man☺☺👍👍
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
You are awesome as well my friend 😍
@pradella
@pradella 3 жыл бұрын
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 жыл бұрын
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 😅
@jahidunnurmaheeofficial2089
@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?
@subhranshudas8862
@subhranshudas8862 2 жыл бұрын
Great explanation. Question what is the difference between using tsdx for build vs Rollup for build?
@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? 😊
@maresstefan3391
@maresstefan3391 Жыл бұрын
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
@mugiwaranoDave
@mugiwaranoDave 3 жыл бұрын
Great one Bruno! How would I add styled-components so I could create my exported components with it?
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
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 жыл бұрын
@@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 жыл бұрын
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 жыл бұрын
This is the repository root github.com/formium/tsdx/tree/master/website
@sky_kryst
@sky_kryst Жыл бұрын
Hey, how can I use this for a React Native Component library?
@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? 😊
@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"
@HidaytRahman
@HidaytRahman Жыл бұрын
What are the alternative?
@saisagarsharma
@saisagarsharma 3 жыл бұрын
where have u been? missed u ;)
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
I missed you too 😍 To be 100% honest with you, I have been very busy with other stuff outside of KZbin 😅😅
@jahidunnurmaheeofficial2089
@jahidunnurmaheeofficial2089 Жыл бұрын
How to run story book from here?
@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 жыл бұрын
Yes you can, just add those libraries as peerDependencies in your library - avoid putting them as dependencies and you will be good to go 😊
@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 😀😊
@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.
@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 жыл бұрын
@@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
@Wakkyguy
@Wakkyguy 2 жыл бұрын
Is there a js version of this?
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Tsdx only works with typescript 🙂
@Wakkyguy
@Wakkyguy 2 жыл бұрын
@@BrunoAntunesPT is there any similar tool for javascript?
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
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 2 жыл бұрын
@@BrunoAntunesPT project requirement, thanks!
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Makes sense 🙂 give a try with microbundle I have heard very good things about it 🙂
@elab4d140
@elab4d140 8 ай бұрын
hhhhhhhhhhhhhhhhhhh wjeh zeb
Fully Automated npm publish using GitHub Actions and Semantic Release
26:24
Build a Component Library for React with Typescript [2021]
20:50
The Nerdy Canuck
Рет қаралды 24 М.
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 43 МЛН
Build And Publish A React Component Library
24:02
PortEXE
Рет қаралды 102 М.
Create a library using Vite lib mode
30:00
Alvaro Dev Labs
Рет қаралды 19 М.
The NPM Library Speedrun - 90 minutes to build, CI, and publish
1:54:17
Build and Publish a Custom React Hook Package on npm
22:44
How to Create and Publish a React Component Library
1:19:25
Alex Eagleson
Рет қаралды 78 М.
How to write and publish your first Typescript library
14:16
Ady Ngom
Рет қаралды 13 М.
React UI Library Structure, Storybook and Tests
22:50
Jack Herrington
Рет қаралды 49 М.
How to make your own NPM package (Step-by-Step) 📦
16:46
Under Ctrl
Рет қаралды 28 М.
How Create and Publish NPM Packages
17:06
James Q Quick
Рет қаралды 21 М.
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН