-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@angular/build): add ng-packagr builder to the package #29270
Conversation
Could this be called the library builder (@angular/build:library) instead? |
There will be a library builder in the future but it will effectively be a rewrite that will leverage the compilation internals of the application builder. |
Got it. Thanks for elaborating on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of questions.
- Do you intend to remove the implementation from build-angular?
- Should we move the spec files?
- Should we export the builder from https://github.com/angular/angular-cli/blob/328854c99b706d78cbb0440102a71fe91eb3a481/packages/angular/build/src/index.ts?
e24994e
to
b25747b
Compare
To support migration to the `@angular/build` package which contains the `application` builder that is used by all new projects, the `ng-packagr` builder used to build Angular libraries is also now available within this package. This removes the need for projects that are using the application builder but also would like to build a library from having to install the Webpack related `@angular-devkit/build-angular` package. This can result in a significant reduction in overall Node.js packages installed within the project.
…neration schematic The newly introduced `ng-packagr` builder within the `@angular/build` package is now used when generating a new library with `ng generate library`. This builder provides the same functionality as the `ng-packagr` builder found within the `@angular-devkit/build-angular` package but removes the need for projects to install `@angular-devkit/build-angular` if using the `application` builder from `@angular/build`.
…kagr builder package The `use-application-builder` update migration will now attempt to migrate the `ng-packagr` builder to use the `@angular/build` package if no other `@angular-devkit/build-angular` usage is present.
b25747b
to
8b161bf
Compare
Is this ready to be merged for today's rc? |
|
To support migration to the
@angular/build
package which contains theapplication
builder that is used by all new projects, theng-packagr
builder used to build Angular libraries is also now available within this
package. This removes the need for projects that are using the application
builder but also would like to build a library from having to install the
Webpack related
@angular-devkit/build-angular
package. This can resultin a significant reduction in overall Node.js packages installed within the
project.