Skip to content

Initial PR for migration to rules_js - #61087

Closed
josephperrott wants to merge 8 commits into
angular:mainfrom
josephperrott:initial-rjs
Closed

josephperrott wants to merge 8 commits into
angular:mainfrom
josephperrott:initial-rjs

Conversation

@josephperrott

Copy link
Copy Markdown
Member

See individual commits.

@josephperrott josephperrott added 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 labels May 1, 2025
@josephperrott
josephperrott requested a review from devversion May 1, 2025 17:36
@ngbot ngbot Bot added this to the Backlog milestone May 1, 2025
@josephperrott josephperrott added target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release labels May 1, 2025
Add a configuration file to prevent autogenerated files from being formatted.
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. Additionally
set up the `ng_project` to replace `ng_module`.
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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Comment thread tools/bazel/ts_project_interop.bzl
@josephperrott
josephperrott marked this pull request as ready for review May 2, 2025 14:04
@JeanMeche JeanMeche added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label May 2, 2025
@JeanMeche

Copy link
Copy Markdown
Member

Caretaker note: The linting error is about the licenses. They're good to go.

@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 1e79d47.

The changes were merged into the following branches: main, 20.0.x

AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
Add a configuration file to prevent autogenerated files from being formatted.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
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.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
Sets up `rules_js` and links dependencies into the bazel-bin.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This commit sets up `rules_ts`, providing the `ts_library` equivalent
for the `rules_js` migration.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
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. Additionally
set up the `ng_project` to replace `ng_module`.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This will automatically result in Renovate updating the Aspect lock
files.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This will result in the release tool automatically updating the Aspect
lock files when necessary.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
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.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
Sets up `rules_js` and links dependencies into the bazel-bin.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This commit sets up `rules_ts`, providing the `ts_library` equivalent
for the `rules_js` migration.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
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. Additionally
set up the `ng_project` to replace `ng_module`.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This will automatically result in Renovate updating the Aspect lock
files.

PR Close #61087
AndrewKushnir pushed a commit that referenced this pull request May 2, 2025
This will result in the release tool automatically updating the Aspect
lock files when necessary.

PR Close #61087
@josephperrott
josephperrott deleted the initial-rjs branch May 2, 2025 17:25
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Jun 2, 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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants