#8457 closed task (fixed)
Migrate to @wordpress/scripts
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 12.0.0 | Priority: | normal |
Severity: | normal | Version: | 6.0.0 |
Component: | Build/Test Tools | Keywords: | has-patch |
Cc: |
Description (last modified by )
Unfortunately unlike Parcel v1, Parcel v2 is not yet supporting library builds (using a global window object for a script). We need this possibility for our shared BP Block components an data store.
We can’t wait longer as v1 is no more maintained and contains node modules with security issues.
I’ve been testing the @wordpress/scripts package for the BP Block Activity Editor feature as a plugin as well as custom Webpack config for the BP Blocks plugin. To fully enjoy the v2 of the block API, I will work on a migration process.
Previous description
Parcel v1 is no longer maintained. I'm going to update it to the last 1.x version. But we'll need to migrate to v2 during next dev cycle.
Change History (16)
#3
@
4 years ago
- Milestone changed from Up Next to 10.0.0
Let's try to progress on it during 10.0.0 dev cycle.
#7
@
2 years ago
- Description modified (diff)
- Keywords needs-patch added
- Summary changed from Migrate to Parcel.js v2 to Migrate to @wordpress/scripts
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
2 years ago
This ticket was mentioned in PR #92 on buddypress/buddypress by @imath.
23 months ago
#10
- Keywords has-patch added; needs-patch removed
- Remove our dependency to ParcelJS
- Add a dependency to
@wordpress/scripts
- Reorganize BP Blocks directories: they are now located and built into each
bp-{component-name}/blocks
directory. - Reorganize
src/js
directory: Admin source JS are located insrc/js/admin
and Blocks source JS are located insrc/js/blocks
- Create a specific
webpack.config.js
file for Admin scripts and each BP Blocks scripts. - Upgrade each BP Block to WP Block API v2 and update all PHP registration code.
- Update Grunt tasks
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8457
In 12889: