Skip to content

Conversation

devversion
Copy link
Member

Patch port of #30731

Sets up the new `ng_project` rule and uses it in `cdk/a11y`. Also sets
up this rule similar to our `ts_project` interop- reusing that code
completely, yay!
With the new `ts_project`, or `ng_project` rule, HTML templates of
components are also copied over to the bazel bin. This unveiled a naming
conflict of e.g. `slider.md` being generated as `slider.html`; while
there is a template like `slider.html`.
This commit migrates all `ng_module` targets to the new `ng_project`
rule. This change was partially assisted/generated using Gemini.
Currently we always use our build tsconfigs from `/src`, whenever we see
a `ts_project`, or `ng_project` target. This doesn't work for targets
outside of `src` and ambiguously breaks the build.

This commit makes this a more obvious failure mode.
We've decided that this size testing infra is not useful after the MDC
migration and can be removed; we can easily re-add if we want.

Notably it was disabled/not running on CI (in a blocking mode) for
months.
Temporarily patches the legacy `ng_package` rule to properly request
partial compilation output from the new `ng_project` rule targets.
This commit removes references to the `ng_module` rule.
We still use an older version of Angular core here. We recently switched
to a whole new bundling approach for APF that fixes this long-term
issue; and going forward `ngDevMode` types are included.

In the main branch we already benefit from this, and don't need the
patch.
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Mar 28, 2025
@devversion devversion marked this pull request as ready for review March 28, 2025 17:32
@devversion devversion requested review from a team as code owners March 28, 2025 17:32
@devversion devversion requested review from andrewseguin, mmalerba and wagnermaciel and removed request for a team March 28, 2025 17:32
@devversion devversion added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 28, 2025
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 28, 2025
@devversion devversion removed request for a team, mmalerba and wagnermaciel March 28, 2025 17:37
@devversion devversion merged commit dccd3ad into angular:19.2.x Mar 28, 2025
30 of 32 checks passed
@devversion devversion deleted the patch-ng-project branch March 28, 2025 17:37
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants