Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.04 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.04 KB

Bibliotheca

Simply a project to store and share all my personal Angular libraries!

Instructions

All commands and file path assume that you are in the root folder of the project bibliotheca

Generate a new library

ng g library @<scope>/<library-name>

Delete a library

  1. Delete its folders in the folder ./projects
  2. Delete its references in the file ./tsconfig.json
  3. Delete its references in the file ./angular.json
  4. Check if there are some unused dependencies in the file './package.json'

Build a library

ng build -- prod @<scope>/<library-name>

Publish a library

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 

Authors

  • Thomas Iommi - Initial work - GitHub