@sedpro/cl-lib

Add module * Add export for this module in projects/cl-lib/src/public-api.ts * Update version in projects/cl-lib/package.json * Build library ng build cl-lib --prod * Publish library to npm cd dist/cl-lib && npm publish

Usage no npm install needed!

<script type="module">
  import sedproClLib from 'https://cdn.skypack.dev/@sedpro/cl-lib';
</script>

README

ClLib

How to publish

  • Add module
  • Add export for this module in projects/cl-lib/src/public-api.ts
  • Update version in projects/cl-lib/package.json
  • Build library ng build cl-lib --prod
  • Publish library to npm cd dist/cl-lib && npm publish
ng build cl-lib --prod
cd dist/cl-lib && npm publish

Details: https://angular.io/guide/creating-libraries

Faq:

  • 403 Forbidden - PUT https://registry.npmjs.org/@sedpro%2fcl-lib - You cannot publish over the previously published versions - rm node_modules and run npm install again