[buddypress-trac] [BuddyPress Trac] #8457: Migrate to @wordpress/scripts
buddypress-trac
noreply at wordpress.org
Tue Apr 25 21:15:14 UTC 2023
#8457: Migrate to @wordpress/scripts
------------------------------+-----------------------
Reporter: imath | Owner: imath
Type: task | Status: assigned
Priority: normal | Milestone: 12.0.0
Component: Build/Test Tools | Version: 6.0.0
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+-----------------------
Comment (by imath):
In [changeset:"13463" 13463]:
{{{
#!CommitTicketReference repository="" revision="13463"
Use `@wordpress/scripts` to build BP Blocks and other Modern JS files
- Reorganize the `src/js` directory so that all blocks are moved inside a
`src/js/blocks/bp-{component-name}` directory and all WP Admin scripts
moved inside a `src/js/admin/bp-{component-name}` directory
- Create a specific `webpack.config.js` file for each component’s blocks
and for all scripts used inside the WP Administration.
- Do not migrate BP Widget blocks `transforms` functions as Legacy widgets
will be moved from BuddyPress 12.0 to the BP Classic plugin.
- Update all BP Blocks to use the WP Block API v2.
- Add a new BP Block collection.
- Built JavaScript files for blocks are now located inside a `blocks`
subdirectory of corresponding component's `src` directories
- Built JavaScript files for WP Admin scripts are located at the same
place than before.
See #8457
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8457#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list