Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Use the Angular Package Format #1157

@lazarljubenovic

Description

@lazarljubenovic

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions