I need to develop a typescript library in my Angular project and publish it to npm later. I learned that in Angular 6 I could use ng generate library
to generate an npm ready library and be able to write and test the library in my application at the same time.
But in my case, the library will be a simple typescript file with some classes wrapped inside. It's not an Angular library since no components or services will be involved. I hope to develop it in my application because I still need the application to provide the data and test the results.
Can I still use ng generate library
to do that? Like generate a non-angular library in my Angular application?
Copyright Notice:Content Author:「Viv」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53788129/create-a-non-angular-library-in-an-angular-application