question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library with secondary entry points only

See original GitHub issue

Type 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:open
  • Created 3 years ago
  • Reactions:16
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
paulayo93commented, Jun 26, 2020

Currently challenged by this issue. Is it possible to have the feature included?

1reaction
SchnWaltercommented, Jan 18, 2021

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:

@example/package
@example/package/core
@example/package/components/badge
@example/package/components/toggle
@example/package/components/toggle/testing
@example/package/components/testing/integration

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-696284548

This 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found