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

Move JS dependencies required to build assets into their own workspace #10321

Merged
merged 34 commits into from
Mar 7, 2025

Conversation

techanvil
Copy link
Collaborator

@techanvil techanvil commented Mar 5, 2025

Summary

Addresses issue:

Relevant technical choices

As discussed in Slack, I've included moving webpack config for the build scripts, and the blocks folder into assets/ in this PR.

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

Copy link

github-actions bot commented Mar 5, 2025

Build files for 6ef79f8 have been deleted.

package.json Outdated
@@ -48,9 +48,6 @@
"install-global-npm": "npm install -g [email protected]",
"postinstall": "patch-package"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to include the patch-package config + handling here as well, no?

Copy link
Collaborator Author

@techanvil techanvil Mar 5, 2025

Choose a reason for hiding this comment

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

We don't seem to have any config for patch-package, it just applies the patches in {repo root}/patches.

Actually, we do have a minor hiccup there in that we have a PHP patch in that directory that that patch-package complains about, it's just a warning but we should fix it. I'll create an issue for it.

@techanvil techanvil force-pushed the infra/10092-npm-workspaces-assets branch from 97c0ffe to 7f1f41e Compare March 6, 2025 11:46
Copy link
Collaborator

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

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

Thanks, @techanvil. Looks mostly good but there are some things that we need to fix before moving on.

Removed:
- @popperjs/core
- @react-hook/window-size

Added:
- @react-hook/event
- @react-hook/throttle

These added packages were needed as they were previously provided by
@react-hook/window-size.
@techanvil
Copy link
Collaborator Author

Thanks for the review, @eugene-manuilov! I've addressed your comments. Back over to you.

Copy link
Collaborator

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

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

Nice work! LGTM.

@eugene-manuilov eugene-manuilov merged commit 8ffe365 into develop Mar 7, 2025
21 of 24 checks passed
@eugene-manuilov eugene-manuilov deleted the infra/10092-npm-workspaces-assets branch March 7, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants