angular-mono | Monorepository example with angular/cli and lerna | Blockchain library
kandi X-RAY | angular-mono Summary
kandi X-RAY | angular-mono Summary
Monorepository example with angular/cli and lerna
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-mono
angular-mono Key Features
angular-mono Examples and Code Snippets
Community Discussions
Trending Discussions on angular-mono
QUESTION
I've created 3 angular libraries/packages:
@example/ng-youtube-player
containing aYoutubePlayerComponent
andYoutubeApiService
@example/ng-dailymotion-player
containing aDailymotionPlayerComponent
andDailymotionApiService
@example/ng-vimeo-player
containing aVimeoPlayerComponent
andVimeoApiService
Now I wanted to create a library containing a VideoPlayerComponent
, using only the packages providing the YoutubeApiService
, DailymotionApiService
and VimeoApiService
. In order to not include the other components unnecessarily, I want to split the 3 libraries each, so that I can install only the Service classes.
You could argue that angular uses tree-shaking, so the components will not be bundled with the application anyway, but anyhow I'd rather have those dependencies seperated for brevity.
I've tried setting up a monorepo containing 2 libraries and a test application, but from the moment I reference a service from another library, the build fails. I've created a very basic example workspace to reproduce the issue:
...ANSWER
Answered 2021-Jul-08 at 11:41NX it is apparently: https://nx.dev. If you ever need to create an angular library, it's best to generate an NX project rightaway.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-mono
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page