How to create an npm Angular package project using angular workspace
This kind of development environment is intend to create a library and then publish it in npm, the project will contain the library and a demo app to test it during development.
Creating the solution (library + test app)
Use the Angular CLI to genera...
ahmed-develop.hashnode.dev3 min read
You know, I just did this a few days back and then completely overhauled it to use
@nrwl/nxwhich is quite handy in terms of generating really nice angular configuration.I took notes here
The reason I preferred this, is you get things like Storybook configuration,
dganalysis, etc., etc., all for free.That said, using this approach here is certainly viable! One thing I would recommend though is to
npm linkand test the package locally first before publishing. Or,npm packand install it locally to do the same. It's not fun to publish to the registry just to learn your package won't install.