Simply a project to store and share all my personal Angular libraries!
All commands and file path assume that you are in the root folder of the project bibliotheca
ng g library @<scope>/<library-name>
- Delete its folders in the folder ./projects
- Delete its references in the file ./tsconfig.json
- Delete its references in the file ./angular.json
- Check if there are some unused dependencies in the file './package.json'
ng build -- prod @<scope>/<library-name>
You need to be registered on NPMJS, then log in with npm login
on your terminal.
If your packages are scoped you'll need to register your organization too, check here for more informations.
cd ./dist/<scope>/<library-name>
npm publish // add '--access public' if you have a free org
- Thomas Iommi - Initial work - GitHub