Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55642 closed task (blessed) (fixed)

Tools: Further automate backporting from Gutenberg to Core

Reported by: gziolo's profile gziolo Owned by: gziolo's profile gziolo
Milestone: 6.0 Priority: normal
Severity: normal Version: 6.0
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:

Description

Follow-up for #51491.

Updating WordPress packages is currently a manual process that takes some reading and trial&error to figure out:

  1. Update browserslist database.
  2. Update WordPress packages.
  3. Install any new WordPress packages required by the existing dependencies.
  4. Update React and other non-WordPress dependencies to the versions required by the WordPress packages.
  5. Run npm run build:dev.

This PR adds a single task called sync-gutenberg-packages that automates this entire process.

Change History (3)

This ticket was mentioned in PR #2621 on WordPress/wordpress-develop by adamziel.


2 years ago
#1

### What problem does this PR solve?

Trac ticket: https://core.trac.wordpress.org/ticket/55642

Updating @wordpress packages is currently a manual process that takes some reading and trial&error to figure out:

  1. Update browserslist database
  2. Update @wordpress packages
  3. Install any new @wordpress required by the existing dependencies
  4. Update React and other non-@wordpress dependencies to the versions required by the @wordpress packages
  5. Run npm build:dev

(see https://github.com/WordPress/wordpress-develop/pull/2564)

This PR adds a single task called sync-gutenberg-packages that automates this entire process.

Ideally, the next step will be a GitHub action that runs it for you.

### Test plan

Run the following commands:

; git checkout bab610091d59f6dd21c7db84ba3e1ca0bab6a211~1
# ^ This repo right before the first round of backports for WP 6.0 Beta1

Then merge this branch into your local copy:

git merge adamziel:try/automate-backports

Then run the command:

; npm install
; npx grunt sync-gutenberg-packages --dist-tag=wp-6.0

Then run git status and confirm it reports the following:

      modified:   package-lock.json
        modified:   package.json
        modified:   src/wp-includes/blocks/archives.php
        modified:   src/wp-includes/blocks/archives/block.json
        modified:   src/wp-includes/blocks/audio/block.json
        modified:   src/wp-includes/blocks/block.php
        modified:   src/wp-includes/blocks/block/block.json
        modified:   src/wp-includes/blocks/button/block.json
        modified:   src/wp-includes/blocks/buttons/block.json
        modified:   src/wp-includes/blocks/calendar.php
        modified:   src/wp-includes/blocks/calendar/block.json
        modified:   src/wp-includes/blocks/categories.php
        modified:   src/wp-includes/blocks/categories/block.json
        modified:   src/wp-includes/blocks/code/block.json
        modified:   src/wp-includes/blocks/column/block.json
        modified:   src/wp-includes/blocks/columns/block.json
        modified:   src/wp-includes/blocks/cover/block.json
        modified:   src/wp-includes/blocks/embed/block.json
        modified:   src/wp-includes/blocks/file.php
        modified:   src/wp-includes/blocks/file/block.json
        modified:   src/wp-includes/blocks/freeform/block.json
        modified:   src/wp-includes/blocks/gallery.php
        modified:   src/wp-includes/blocks/gallery/block.json
        modified:   src/wp-includes/blocks/group/block.json
        modified:   src/wp-includes/blocks/heading/block.json
        modified:   src/wp-includes/blocks/html/block.json
        modified:   src/wp-includes/blocks/image.php
        modified:   src/wp-includes/blocks/image/block.json
        modified:   src/wp-includes/blocks/latest-comments.php
        modified:   src/wp-includes/blocks/latest-comments/block.json
        modified:   src/wp-includes/blocks/latest-posts.php
        modified:   src/wp-includes/blocks/latest-posts/block.json
        modified:   src/wp-includes/blocks/legacy-widget.php
        modified:   src/wp-includes/blocks/list/block.json
        modified:   src/wp-includes/blocks/loginout/block.json
        modified:   src/wp-includes/blocks/media-text/block.json
        modified:   src/wp-includes/blocks/missing/block.json
        modified:   src/wp-includes/blocks/more/block.json
        modified:   src/wp-includes/blocks/navigation-link.php
        modified:   src/wp-includes/blocks/navigation-link/block.json
        modified:   src/wp-includes/blocks/navigation-submenu.php
        modified:   src/wp-includes/blocks/navigation-submenu/block.json
        modified:   src/wp-includes/blocks/navigation.php
        modified:   src/wp-includes/blocks/navigation/block.json
        modified:   src/wp-includes/blocks/nextpage/block.json
        modified:   src/wp-includes/blocks/page-list.php
        modified:   src/wp-includes/blocks/page-list/block.json
        modified:   src/wp-includes/blocks/paragraph/block.json
        modified:   src/wp-includes/blocks/pattern/block.json
        modified:   src/wp-includes/blocks/post-author.php
        modified:   src/wp-includes/blocks/post-author/block.json
        modified:   src/wp-includes/blocks/post-comments/block.json
        modified:   src/wp-includes/blocks/post-content.php
        modified:   src/wp-includes/blocks/post-content/block.json
        modified:   src/wp-includes/blocks/post-date.php
        modified:   src/wp-includes/blocks/post-date/block.json
        modified:   src/wp-includes/blocks/post-excerpt.php
        modified:   src/wp-includes/blocks/post-excerpt/block.json
        modified:   src/wp-includes/blocks/post-featured-image.php
        modified:   src/wp-includes/blocks/post-featured-image/block.json
        modified:   src/wp-includes/blocks/post-navigation-link.php
        modified:   src/wp-includes/blocks/post-navigation-link/block.json
        modified:   src/wp-includes/blocks/post-template.php
        modified:   src/wp-includes/blocks/post-template/block.json
        modified:   src/wp-includes/blocks/post-terms.php
        modified:   src/wp-includes/blocks/post-terms/block.json
        modified:   src/wp-includes/blocks/post-title.php
        modified:   src/wp-includes/blocks/post-title/block.json
        modified:   src/wp-includes/blocks/preformatted/block.json
        modified:   src/wp-includes/blocks/pullquote/block.json
        modified:   src/wp-includes/blocks/query-pagination-next.php
        modified:   src/wp-includes/blocks/query-pagination-next/block.json
        modified:   src/wp-includes/blocks/query-pagination-numbers/block.json
        modified:   src/wp-includes/blocks/query-pagination-previous.php
        modified:   src/wp-includes/blocks/query-pagination-previous/block.json
        modified:   src/wp-includes/blocks/query-pagination.php
        modified:   src/wp-includes/blocks/query-pagination/block.json
        modified:   src/wp-includes/blocks/query-title/block.json
        modified:   src/wp-includes/blocks/query/block.json
        modified:   src/wp-includes/blocks/quote/block.json
        modified:   src/wp-includes/blocks/rss.php
        modified:   src/wp-includes/blocks/rss/block.json
        modified:   src/wp-includes/blocks/search.php
        modified:   src/wp-includes/blocks/search/block.json
        modified:   src/wp-includes/blocks/separator/block.json
        modified:   src/wp-includes/blocks/shortcode/block.json
        modified:   src/wp-includes/blocks/site-logo.php
        modified:   src/wp-includes/blocks/site-logo/block.json
        modified:   src/wp-includes/blocks/site-tagline/block.json
        modified:   src/wp-includes/blocks/site-title.php
        modified:   src/wp-includes/blocks/site-title/block.json
        modified:   src/wp-includes/blocks/social-link.php
        modified:   src/wp-includes/blocks/social-link/block.json
        modified:   src/wp-includes/blocks/social-links/block.json
        modified:   src/wp-includes/blocks/spacer/block.json
        modified:   src/wp-includes/blocks/table/block.json
        modified:   src/wp-includes/blocks/tag-cloud.php
        modified:   src/wp-includes/blocks/tag-cloud/block.json
        modified:   src/wp-includes/blocks/template-part.php
        modified:   src/wp-includes/blocks/template-part/block.json
        modified:   src/wp-includes/blocks/term-description/block.json
        modified:   src/wp-includes/blocks/text-columns/block.json
        modified:   src/wp-includes/blocks/verse/block.json
        modified:   src/wp-includes/blocks/video/block.json

cc @gziolo

#2 @gziolo
2 years ago

  • Owner set to gziolo
  • Resolution set to fixed
  • Status changed from new to closed

In 53311:

Tools: Further automate backporting from Gutenberg to Core

Follow-up for #51491.

Updating WordPress packages is currently a manual process that takes some reading and trial & error to figure out. This PR adds a single npm task called sync-gutenberg-packages that automates this entire process.

Props zieladam.
Fixes #55642.

Note: See TracTickets for help on using tickets.