155 likes
·
2.6K reads
14 comments
Awesome Article!, I did code along until it was time to deploy to npm. I didn't want to do that.
Thanks for sharing though, it's good knowing how packages are made.
Very glad you've enjoyed it!
Honestly, my goal was to demystify how npm packages are made. I used to think that it was complicated and cumbersome. All the articles I found were talking about tools and other things that can make beginners just give up.
I glad you took a different approach then 😊Tarek Jellali
I found the article easy to follow along.
That was a really great article Tarek Jellali. As someone who has never self-published a package before I was curious to know how it was done and this explained things really well!
Thanks you so much Kieran! So happy you liked it 😀 !
Great article. 🚀
Awesome already bookmarked it this will come in useful later.
Happy to read that, thank you so much 🙌 !
Great article Tarek, to be honest, I haven't published a package yet so this will help me with my next project
Thanks a lot!
Very happy you liked it, Rodrigo! I hope it'll come helpful to you yes! 🙌
- it takes 5 minutes to push your example into github project and linking it here
- building with tsc does not allow you yo use *.css|scss files
Hello there, I'm not sure I understand your first point, the repo is available here and evey step in the guide has the commit id + link to commit reflecting that step.
As for your second point, correct, TSC does not build and bundle scss. I didn't mention CSS/SCSS bundling for a package to keep things really simple. If you think I need to address it, I can add a bonus section for sure 😊 .
- I ment it would be so much easier to understand what is going on if we could see full-code example (GitHub repo).
- Any React component package contains some sort of styling - as far as I'm concerned it gets very messy when you're trying to add styles to TSC
Wade Wilson I get what you mean. This is more a general guide to help someone new to the world of npm packages to get started.
In any case I like what you're suggesting, I think this deserves a part 2 with something more advanced 😃 !