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.

Use the Angular Package Format

See original GitHub issue

There’s been some development in publishing libraries since our build system was last time revised. We now have an official document called Angular Package Format (APF), which describes the what and why.

As for how… There’s been a lot of discussion everywhere. In the CLI repo, it started here and after more than a year continued here. Here, we have a very informant comment by Rob, which explains problems with packaging and why CLI cannot do it the way we create apps with it.

The important bit in the comment is angular-quickstart-lib repo by Filipe, Angular CLI core member which serves as an APF starter. There’s a PR to make the readme of that repo an official Angular guide, but looks like it got stalled for a month now; so I’m not sure where we’re at from the standpoint of “this is official and this is how it should be done” by the Angular core team.

There’s also an ongoing attempt to create a CLI for creating libraries in APF, called ng-packagr, but it’s rather new and not used much yet. So I’d rather use the aforementioned APF boilerplate as a reference point and re-organize the repo.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
sebholsteincommented, Sep 17, 2017

@lazarljubenovic no, this should be independent from the code changes, as we have to change the structure of the package content but not the source code itself.

3reactions
lpmusiconcommented, Oct 12, 2017

Hey, any update on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular package format
The Angular Package Format specifies that code be published in "flattened" ES module format. This significantly reduces the build time of Angular applications ......
Read more >
Angular Package Format v10 - Google Docs
The general rule in the Angular Package Format is to produce a FESM file for the smallest set of logically connected code. For...
Read more >
Learn The Main Benefits of Using The Angular Package Format
You must install peer dependencies yourself. npm WARN @angular/tsc-wrapped@4.4.7 requires a peer of typescript@^2.1.5 but none is installed. You must install ...
Read more >
Moving a Project to Angular Package Format - Stack Overflow
I need to move it to the Angular package format. The reason is this: node_modules/@fireflysemantics/slice/index.ts is missing from the ...
Read more >
Dependency Management for Angular Package Format Modules
We have setup an Angular Workspace containing two library projects: ... Both are Angular Package Format libraries. The library @fireflysemantics/forecasting has @ ...
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