-
Notifications
You must be signed in to change notification settings - Fork 801
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
jetpack-mu-wpcom: Improve Verbum build #35323
Conversation
* Avoid copying php files into `src/build/`, as it causes Composer to complain about multiple files providing the classes. * Run `dynamic-loader.js` through webpack for minification. * Use the jetpack-assets package to register the scripts using the data in the `.assets.php` files.
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Hi Verbum folks! Sorry for dumping a PR on you without doing much testing myself. 🙁 I don't really know how Verbum works. Please feel free to fix stuff if there are obvious errors in the PR, and if this works for you feel free to merge it. Thanks! |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much!
- I added testing steps for future ref.
- I verified
dynamic-loader.js
is versioned and minified. - I verified Verbum works, including the block editor.
- I verified the embeds work.
- I tested on Atomic and I don't see any warnings or errors.
@@ -250,14 +246,14 @@ public function enqueue_assets() { | |||
|
|||
wp_enqueue_script( 'verbum-settings' ); | |||
|
|||
wp_enqueue_script( | |||
Assets::register_script( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @Automattic/vertex it seems that's why we had issues with our versioning! Let's fix this one in our SSO work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing:
Synced changes to WoA site and did not see any warnings/errors.
Verified embed blocks are still working.
Tested posts work for WPCOM, FB, and anon users with and without GB editor (Simple and Atomic).
Verified dynamic-loader.js is versioned and minified.
Co-authored-by: Anthony Grullon <[email protected]>
Proposed changes:
src/build/
, as it causes Composer to complain about multiple files providing the classes.dynamic-loader.js
through webpack for minification..assets.php
files.Other information:
Jetpack product discussion
p1706559158287209/1706556445.671539-slack-C01U2KGS2PQ
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Regression testing