If you keep creating the same blocks of code over and over it might be a good idea to turn them into reusable modules. There is nothing more modular when it comes to code than writing a library. But where do you start. In this video I will show all you need to write and publish your first Typescript / Javascript library as an NPM package
Table of Contents:
00:06 - Check if library name is available
00:41 - Create your new library folder
01:07 - Create a package.json file
01:27 - Add essentials values to package.json
02:04 - Install typescript
02:18 - Create dynamically a tsconfig file
02:45 - Add essential values to tsconfig
04:10 - Add your lib files under a src folder
05:43 - Convert typescript to javascript
06:08 - Login to npm via the cli
06:36 - Now publish your package
07:05 - Time to test your new package
09:32 - How to test without adding a new version
13:43 - Next steps