Commit 22294af
committed
Build: Update Gutenberg integration to checkout-and-build approach.
This changes WordPress Core's Gutenberg integration from npm packages to checking out and building Gutenberg directly. Instead of syncing individual npm packages, Core now checks out the Gutenberg repository, builds it, and copies the build artifacts.
This enables Core to use Gutenberg's advanced features like route-based navigation, full-page rendering, and the Font Library, while also streamlining future updates.
New commands:
* `npm run gutenberg:checkout` - Clones Gutenberg at a specified ref
* `npm run gutenberg:build` - Runs Gutenberg's build process
* `npm run gutenberg:copy` - Copies and transforms build output to Core
* `npm run gutenberg:integrate` - Runs all three steps
Main changes:
* Removes webpack configs replaced by Gutenberg's build (blocks.js, packages.js, script-modules.js, development.js, vendors.js)
* Adds Font Library page (`/wp-admin/font-library.php`)
* Adds copy scripts to transform Gutenberg plugin paths to Core paths
* Moves vendor copy step from webpack to Gruntfile
New year, new process. Happy New Year!
Props youknowriad, ellatrix, sirreal, westonruter, desrosj, tellthemachines.
Fixes #64393.
git-svn-id: https://develop.svn.wordpress.org/trunk@61438 602fd350-edb4-49c9-b593-d223f7449a821 parent adc9daf commit 22294af
File tree
235 files changed
+1996
-33457
lines changed- .github/workflows
- src
- wp-admin
- includes
- wp-includes
- assets
- blocks
- accordion-heading
- accordion-item
- accordion-panel
- accordion
- archives
- audio
- avatar
- block
- buttons
- button
- calendar
- categories
- code
- columns
- column
- comment-author-name
- comment-content
- comment-date
- comment-edit-link
- comment-reply-link
- comment-template
- comments-pagination-next
- comments-pagination-numbers
- comments-pagination-previous
- comments-pagination
- comments-title
- comments
- cover
- details
- embed
- file
- footnotes
- freeform
- gallery
- group
- heading
- home-link
- html
- image
- latest-comments
- latest-posts
- legacy-widget
- list-item
- list
- loginout
- math
- media-text
- missing
- more
- nextpage
- page-list-item
- page-list
- paragraph
- pattern
- post-author-biography
- post-author-name
- post-author
- post-comments-count
- post-comments-form
- post-comments-link
- post-content
- post-date
- post-excerpt
- post-featured-image
- post-template
- post-terms
- post-time-to-read
- post-title
- preformatted
- pullquote
- query-no-results
- query-pagination-next
- query-pagination-numbers
- query-pagination-previous
- query-pagination
- query-title
- query-total
- query
- quote
- read-more
- rss
- search
- separator
- shortcode
- site-logo
- site-tagline
- site-title
- social-links
- social-link
- spacer
- table
- tag-cloud
- template-part
- term-count
- term-description
- term-name
- term-template
- terms-query
- text-columns
- verse
- video
- widget-group
- tests/phpunit
- data/blocks/fixtures
- tests
- admin
- script-modules
- tools
- gutenberg
- vendors
- webpack
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
235 files changed
+1996
-33457
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 100 | | |
143 | 101 | | |
144 | 102 | | |
145 | 103 | | |
146 | 104 | | |
147 | 105 | | |
148 | | - | |
| 106 | + | |
149 | 107 | | |
150 | 108 | | |
151 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
1279 | 1278 | | |
1280 | 1279 | | |
1281 | 1280 | | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1282 | 1289 | | |
1283 | 1290 | | |
1284 | 1291 | | |
| |||
1414 | 1421 | | |
1415 | 1422 | | |
1416 | 1423 | | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1417 | 1477 | | |
1418 | 1478 | | |
1419 | 1479 | | |
| |||
1569 | 1629 | | |
1570 | 1630 | | |
1571 | 1631 | | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | 1632 | | |
1590 | 1633 | | |
1591 | 1634 | | |
| |||
1723 | 1766 | | |
1724 | 1767 | | |
1725 | 1768 | | |
1726 | | - | |
1727 | 1769 | | |
1728 | 1770 | | |
1729 | 1771 | | |
| |||
1853 | 1895 | | |
1854 | 1896 | | |
1855 | 1897 | | |
| 1898 | + | |
| 1899 | + | |
1856 | 1900 | | |
1857 | 1901 | | |
1858 | 1902 | | |
| |||
1861 | 1905 | | |
1862 | 1906 | | |
1863 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
1864 | 1910 | | |
1865 | 1911 | | |
1866 | 1912 | | |
| |||
0 commit comments