I have created a custom library using the command inside my angular app
ng g library custom-lib
I was able to consume the library by building & packing and I was able to add the custom-lib in my original angular application.Next step i wanted to add the dependencies in my library.I wanted to add the bootstrap,jquery,fontawesome and others as dependency in my libraries's package.json
INSIDE LIBRARY PACKAGE.JSON
"dependencies": {
"ng5-slider": "^1.1.14",
"ngx-owl-carousel": "^2.0.7",
"bootstrap": "^4.3.1",
"core-js": "^2.5.4",
"jquery": "^3.3.1",
"popper.js": "^1.15.0",
"font-awesome": "^4.7.0"
}
Now when the library is installed these dependencies also get installed in the node modules.Since there is no angular.json in library I am struggling to add the scripts and styles for the library.
My goal is to add the scripts and styles for my dependencies in my custom library so that when I install my library ,all my dependencies gets their styles and scripts loaded readily and I should not manually add them in angular.json.