Has the modern Web Platform evolved to the point where we can start
using native components? As developers, we know that reusing code is a
good idea. Does this mean we should use Web Components everywhere, or is
this taking it a step too far?
I’m going to use the commands from my article ‘Get Started with your
first Angular library’ and turn them into npm scripts.
I will also show how we can re-use these scripts for multiple libraries
across platforms with the help of variables and cross-env.
The DatePipe in Angular is great, but if you want to be able to support
more than one language in your application you might want to implement
your own pipe. In this article, I will show how to register your locales,
create your custom pipes and then we will add them to our library.
In this article, I will create a library and then use it in another
project. I will not go too much into details, and what different config
files are for but will try to keep this tutorial as short as possible for
getting that first library working.