I will be very specific and will divide my question into points.
1. What I want to achieve in overall:
Creating a ready to be published to npm angular 2 boilerplate library (latest version)
2. What is not working:
Both tutorials beneath, cited at stackoverflow earlier are not working properly in many aspects or are outdated or just not very clear. Also in the Internet there is more confusion than information about how to prepare a valid and working angular 2 library.
https://medium.com/@OCombe/how-to-publish-a-library-for-angular-2-on-npm-5f48cdabf435#.c3yuzcrgj
3. What I want to achieve in specific:
I would like to know the steps and summarize here what is essential for creating the library in the latest angular 2 version from scratch. With code examples. May it serve all stackoverflowers for the future as a working boilerplate.
What I propose is to write down a shortest possible list what needs to be done in points, with code examples.