Skip to content

Migrate to WP Scripts for Building #2431

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

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open

Migrate to WP Scripts for Building #2431

wants to merge 88 commits into from

Conversation

bordoni
Copy link
Member

@bordoni bordoni commented Mar 7, 2025

🎫 Ticket

TCMN-182


Please read more about this task here:
https://github.com/stellarwp/tyson/blob/main/docs/tec-migration.md

Add a drop-in replacement for  the `tribe_assets` function that will
load assets from the `/build` directory.
Since assets are immediately registered in WordPress on registration,
the URL will be set to the registration one. To avoid unregistering and
re-registering the asset with the correct (/build) URL, just provide the
`group_path` argument during registration.
This updates the `data` attribute to use a less generic name and
modifies the `click` handler logic to target IAN elements only.
Additionally, ensure elements exist in the current context before
targeting them.
Replace the WebPack configuration file with one set up by
stellarwp/tyson. Together with it, remove the dependency on
`product-taskmaster` including the babel configuration file.
Update the image paths from relative to the plugin root to relative to
the postcss file being processed.
Explicitly require and include in the PostCSS pre-processing the
`postcss-nested` and `postcss-custom-media` packages to make sure
existing PostCSS code is processed the correct way, before
`autoprefixer` kicks in.
Update the code to fix _most_ issues regarding asset registration and
loading from the `/build` directory.
Update the WebPack configuration file to include all required modules to
build.
@tec-bot
Copy link
Contributor

tec-bot commented Apr 13, 2025

PR to update Action Scheduler version to match WooCommerce version has been created: #2501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code review Status: requires a code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants