Skip to content
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

Patch port of initial rules_js migration PR #30654

Merged
merged 8 commits into from
Mar 19, 2025

Conversation

devversion
Copy link
Member

Patch port of #30629

@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Mar 19, 2025
@devversion devversion force-pushed the rjs-1-patch branch 2 times, most recently from a432375 to a2349fd Compare March 19, 2025 15:33
This is necessary for an incremental migration to `rules_js` which
requires Bazel v6. Bazel v6 removed the managed directories feature,
which means we no longer can rely on symlinked node modules as the Bazel
repository; but rather need to duplicate dependencies. This is
okay/acceptable to enable the incremental migration.
Sets up `rules_js` and links dependencies into the bazel-bin.
This commit sets up `rules_ts`, providing the `ts_library` equivalent
for the `rules_js` migration.
The `ts_project` interop rule that we've built was also used in the
Angular CLI migration, and it allows us to mix `ts_project` and
`ts_library` targets; enabling an incremental migration.
This is an initial commit to migrate some `testing/` targets to
`ts_project`, leveraging the interop rule we've built.

Notably we also turn of strict deps checking temporarily as the deps
checking is only applicable when there are no interop deps anymore!
@devversion devversion closed this Mar 19, 2025
@devversion devversion reopened this Mar 19, 2025
@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 19, 2025
@devversion devversion marked this pull request as ready for review March 19, 2025 15:52
@devversion devversion requested review from a team, andrewseguin and jelbourn as code owners March 19, 2025 15:53
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

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

LGTM

* Moves the public API goldens to `goldens/`
* Switches us to the `npm_package` variant of the golden testing rule.
  This variant is more future proof and will work well with the
  `rules_js` migration (as it takes arbitrary Bazel tree artifacts)
This will automatically result in Renovate updating the Aspect lock
files.
This will result in the release tool automatically updating the Aspect
lock files when necessary.
@devversion devversion merged commit eba13ca into angular:19.2.x Mar 19, 2025
18 of 19 checks passed
@devversion devversion deleted the rjs-1-patch branch March 19, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer 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.

3 participants