Skip to content

feat: support custom webpack and ngx-env builders #7557

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

Merged
merged 16 commits into from
Mar 13, 2025

Conversation

9kubczas4
Copy link
Contributor

@9kubczas4 9kubczas4 commented Aug 14, 2024

Description

This PR supports the custom Angular builders requested in the following issues:

Scenarios Tested

Deployed Angular applications which uses following builders:

  • custom webpack
  • ngx-env builder.

Sample Commands

@9kubczas4 9kubczas4 requested a review from jamesdaniels August 20, 2024 15:38
@9kubczas4 9kubczas4 marked this pull request as ready for review August 20, 2024 15:38
@9kubczas4 9kubczas4 changed the title feat: support custom webpack builder feat: support custom webpack and ngx-env builders Aug 22, 2024
@@ -79,10 +79,21 @@ const enum ExpectedBuilder {
LEGACY_DEVKIT_SSR_DEV_SERVER = "@angular-devkit/build-angular:ssr-dev-server",
}

const enum ThirdPartyBuilder {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qq, could we just simplify all this and only look after the last colon and expect it to conform to the builder-type? e.g, ":application", ":dev-server", ":server", ":browser", etc.

Copy link
Contributor

@bboysokol bboysokol Feb 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamesdaniels Regarding to this PR, I created another one with the requested changes:
#8256

bboysokol and others added 4 commits March 5, 2025 14:41
* Added handling for different angular builders

* Remove unused method from angular

* Review changes, tests and cleaning

* Removing empty jsdocs

* Fixing tests

* Update src/frameworks/angular/utils.ts

---------

Co-authored-by: Leonardo Ortiz <[email protected]>
@leoortizz leoortizz requested a review from jamesdaniels March 6, 2025 15:21
Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for taking to the finish line

@leoortizz leoortizz enabled auto-merge (squash) March 13, 2025 20:36
@leoortizz leoortizz merged commit 11c6ffc into master Mar 13, 2025
52 of 55 checks passed
@leoortizz leoortizz deleted the feat/do-not-block-to-use-other-builders branch March 14, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants