build: complete removal of bazel format yarn commands by josephperrott · Pull Request #37148 · angular/angular · GitHub
Skip to content

build: complete removal of bazel format yarn commands - #37148

Closed
josephperrott wants to merge 2 commits into
angular:masterfrom
josephperrott:bazel-format-deprecation-removal
Closed

josephperrott wants to merge 2 commits into
angular:masterfrom
josephperrott:bazel-format-deprecation-removal

Conversation

@josephperrott

Copy link
Copy Markdown
Member

Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

@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 area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) labels May 15, 2020
@ngbot ngbot Bot modified the milestone: needsTriage May 15, 2020
@pullapprove
pullapprove Bot requested a review from gkalpak May 15, 2020 23:03
@josephperrott
josephperrott force-pushed the bazel-format-deprecation-removal branch from c8998a1 to 50f17e9 Compare May 15, 2020 23:09
Comment thread package.json Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about we keep these in here for a bit longer, but instead of displaying a warning, we error?

TBH I didn't catch that we should be now using ng-dev format instead of yarn bazel:format and if this got merged without me randomly opening this PR I wouldn't know what to do next time I need to reformat some files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Currently, we already fail to perform the format and instead instruct the user to run the new command.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you are right, I must have been lucky and not have a need to run the script because my IDE formatter does the job and I rarely need to reformat from the command line, but when I do I'd prefer to at least see a comment in package.json under scripts that reminds me to use yarn ng-dev --help instead.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added general note in "scripts" about our increased migration to using ng-dev

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thank you!

@josephperrott
josephperrott requested a review from IgorMinar May 19, 2020 21:49
Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.
@josephperrott
josephperrott force-pushed the bazel-format-deprecation-removal branch from 50f17e9 to 5b004e4 Compare May 20, 2020 15:45

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@josephperrott
josephperrott removed the request for review from gkalpak May 20, 2020 16:09
kara pushed a commit that referenced this pull request May 20, 2020
Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

PR Close #37148
@kara kara closed this in 59e7203 May 20, 2020
@angular-automatic-lock-bot

Copy link
Copy Markdown

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 20, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

PR Close angular#37148
@josephperrott
josephperrott deleted the bazel-format-deprecation-removal branch August 31, 2023 17:33
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 area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) cla: yes 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