Library with secondary entry points only
See original GitHub issueType of Issue
[ ] Bug Report
[x] Feature Request
Description
Would it be good idea for ng-packagr
to support a library consisting of secondary points alone?
Something like @angular/material
is doing.
How To Reproduce
n/a
Expected Behaviour
@angular/material
is a library that inspires a lot of other libraries, I am sure. Would it not be a good idea to support their structure?
Example:
| - library
| - component-a
| - component-b
Could result in @org/library/component-a
and @org/library/component-b
.
Version Information
n/a
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Creating Secondary Entry Points for your Angular Library
In this article, we will take a look at how we can utilise ng-packagr secondary entry points to split our Angular Library even...
Read more >Building an Angular Library with multiple entry points | Articles
In a newly created Angular library that's the only entry point that you have, and it exports all of your modules, components, services,...
Read more >Why and how to use secondary entrypoints in your Angular ...
By adding secondary entrypoints, we basically split our Angular libraries into multiple chunks, just like Angular Material does. A Example:.
Read more >Angular library secondary entry points that depend on each ...
I can tell you how I workarounded this problem. The problem here is to understand how ng-packagr builds our libraries depending the ...
Read more >Angular Libraries Adding Secondary EntryPoints - YouTube
This is the second part of Angular Libraries, where we add a secondary entrypoint to make Angular libraries Tree-shakable.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Currently challenged by this issue. Is it possible to have the feature included?
Just to add a note, we already have an undocumented support for empty “secondary entry points”, which allows us to have a library that skips “one level” in the sub-package path:
Notice the missing
@example/package/components
and@example/package/components/testing
sub-packages, see comments on: https://github.com/ng-packagr/ng-packagr/issues/1748#issuecomment-696284548This feature would be similar to that, if official support is added for such a feature, we should probably deal with these features in the same MR.