samedi 10 avril 2021

How to create a Typescript/Javascript library within an Angular project

I want to create a library which is framework agnostic so that it can work with Angular/React/Vue or even in pure typescript project. But I'm an Angular developer and I would like to create it within an Angular project to test it directly in a real usecase. I saw that Angular can do it for us with its own cli : https://angular.io/guide/creating-libraries

The problem is I have to code my library with Angular Components, Services and Modules and I want to avoid that (The code will be published to github). How can I structure my project given my current constraints ?

Aucun commentaire:

Enregistrer un commentaire