summaryrefslogtreecommitdiffstatshomepage
path: root/Gruntfile.js
Commit message (Collapse)AuthorAge
* Emoji: Update the Twemoji library to 15.1.0.Peter Wilson2025-03-18
| | | | | | | | | | | | | This version adds support for the latest emoji added in Unicode Emoji 15.1. I will rise like a phoenix 🐦‍🔥 but you’re my flame 🔥. Props audrasjb, azaozz, hbhalodia, jorbin, sergeybiryukov, sirlouen. Fixes #63064. git-svn-id: https://develop.svn.wordpress.org/trunk@60035 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Remove `matchdep` as a dependency.Jonathan Desrosiers2025-02-10
| | | | | | | | | `matchdep` was introduced in [25243] to more easily manage `grunt-*` dependencies. The package has effectively been abandoned upstream, and the functionality can be replaced with a simple loop. Props desrosj, spacedmonkey, swissspidy. See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@59797 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update packages for 6.8 pre-Betas.Joe McGill2025-02-07
| | | | | | | | | | Syncs @wordpress/* packages to the 'latest' npm tag. Props mamaduka, joemcgill, youknowriad, swissspidy, sergiomdgomes, gziolo. See #62887. git-svn-id: https://develop.svn.wordpress.org/trunk@59775 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Configure UglifyJS to preserve previous behavior.Jonathan Desrosiers2025-02-06
| | | | | | | | | | | As of UglifyJS >= 3.18.0, the default behavior is to process input as an ES module. This updates the relevant configurations to ensure the build process continues to use the previous behavior to avoid JavaScript errors in the minified versions of files. Follow up to [58563], [58586], and [59509]. Props siliconforks, nataliat2004, poena, mai21, SergeyBiryukov. Fixes #62767. See #61519, #62220. git-svn-id: https://develop.svn.wordpress.org/trunk@59768 602fd350-edb4-49c9-b593-d223f7449a82
* Security: Introduce Grunt task for updating Root Certificates.Jonathan Desrosiers2025-01-30
| | | | | | | | | | | | | | | | | | | The Root Certificate bundle maintained by Mozilla ships in WordPress to allow SSL certificates to be verified on hosts with incomplete, outdated, or invalid local SSL configurations. To date, updates have only been merged into Core when problems arise using a highly manual process. This introduces the `certificates:upgrade` Grunt task to automate the process of updating the included bundle with upstream changes using Composer to manage versioning. The legacy 1024bit certificates included for backwards compatibility are now maintained in a separate file that is prepended to the built version of the bundle during the relevant Grunt tasks. Some expired certificates from this list have been removed: - Cybertrust Global Root (expired 2021-12-15) - Thawte Server CA (expired 2020-12-31) - Thawte Premium Server CA (expired 2020-12-31) The Dependabot configuration has also been updated to open pull requests when new releases occur upstream. Going forward, the recommendation is to create a task ticket for updating these certificates with each release when an update is published. See #62811 for an example of this. Props johnbillion, desrosj, whyisjake, ayeshrajans, SergeyBiryukov, swissspidy, skithund, barry. Fixes #62812. See #62811, 50828. git-svn-id: https://develop.svn.wordpress.org/trunk@59740 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Switch to using local references for reusable workflows.John Blackbourn2025-01-21
| | | | | | | | | | | | | The benefit of this is that when PRs are made to make changes to a reusable workflow, the references doesn't need to be updated to point to the fork in order for the changed workflow to run. A `npm run grunt replace:workflow-references-local-to-remote` command has also been introduced in order to convert these local references back to remote ones. This command can be used to switch release branches over to using remote workflows, as they are currently, so they continue to benefit from workflow changes in trunk without the need for continual backporting to all the branches. Props desrosj, johnbillion Fixes #62416 git-svn-id: https://develop.svn.wordpress.org/trunk@59673 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Improve the error message shown when fetching Twemoji fails.John Blackbourn2024-11-21
| | | | | | | | | This allows the full error message to be shown from the connection attempt instead of a generic error message. Fixes #62382 git-svn-id: https://develop.svn.wordpress.org/trunk@59443 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Prepare for more Script ModulesGreg Ziółkowski2024-09-24
| | | | | | | | | | | | | This is a companion to https://github.com/WordPress/gutenberg/pull/65460 that requires syncing in WordPress Core. Namely, the block-library changes require registration with their updated script module IDs so that the blocks continue to work correctly. They key improvement is script modules registration is handled in one central place, and a combined asset file is used to improve the performance by avoiding multiple disk operations for every individual file. Props jonsurrell, gziolo, wildworks, noisysocks. See #60647, #59462. git-svn-id: https://develop.svn.wordpress.org/trunk@59083 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update packages for 6.7 Beta 1.Robert Anderson2024-09-20
| | | | | | | | | | Syncs `@wordpress/*` packages to the `wp-6.7` npm tag. Fixes #61906. Props peterwilsoncc, gziolo, kevin940726. git-svn-id: https://develop.svn.wordpress.org/trunk@59072 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Fix the `precommit:emoji` script.Jonathan Desrosiers2024-03-04
| | | | | | | | | | | | | GitHub recently sunset support for Subversion, causing the `precommit:emoji` Grunt script to break. Since there’s no direct replacement for `svn ls` in Git, this has been replaced with a query through the GitHub CLI. This also adds a step in the workflow that tests the build process to run the `precommit:emoji` script to ensure no changes to built files are missed when updating the Twemoji library in the future. Follow up to [57626]. Props kraftbj, peterwilsoncc, swissspidy. Fixes #60520. See #57600. git-svn-id: https://develop.svn.wordpress.org/trunk@57758 602fd350-edb4-49c9-b593-d223f7449a82
* General: Add an option to configure the site icon in general settings.Aaron Jorbin2024-02-12
| | | | | | | | | | | | | | | | | | This restores the site icon setting to its original home on the settings page where it lives with the title and tagline. The base for this code was originally added in [32994] and then removed in [33329]. The majority of the modification to that version are to remove the no-js pieces and make the workflow completely inline rather than putting the cropping on a separate page. Additionally, since image crops rely on the ability to upload an image, this setting is gated by the `upload_files` capability. Follow-up to: [32994], [33329]. Props jorbin, audrasjb, mukesh27, joedolson, afercia, kebbet, swissspidy, obenland, jameskoster, kjellr, andraganescu, stacimc, mikeschroder, h71, krupajnanda, huzaifaalmesbah. Fixes #54370. See #16434. git-svn-id: https://develop.svn.wordpress.org/trunk@57602 602fd350-edb4-49c9-b593-d223f7449a82
* Script Modules API: Add import map polyfill for older browsersGreg Ziółkowski2024-01-31
| | | | | | | | | | | Syncs the changes from https://github.com/WordPress/gutenberg/pull/58263. Adds a polyfill to make import maps compatible with unsported browsers (https://caniuse.com/import-maps). Fixes #60348. Props cbravobernal, jorbin, luisherranz, jonsurrell. git-svn-id: https://develop.svn.wordpress.org/trunk@57492 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.Riad Benguella2024-01-29
| | | | | | | | | | | | | | | | | | | | This patch, somewhat small brings a lot to WordPress. This includes features like: - DataViews. - Customization tools like box shadow, background size and repeat. - UI improvements in the site editor. - Preferences sharing between the post and site editors. - Unified panels and editors between post and site editors. - Improved template mode in the post editor. - Iterations to multiple interactive blocks. - Preparing the blocks and UI for pattern overrides. - and a lot more. Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj. See #60315. git-svn-id: https://develop.svn.wordpress.org/trunk@57377 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Expand "imagemin" Grunt task to cover default themes.Pascal Birchler2024-01-22
| | | | | | | | | Runs `npm run grunt precommit:image` to minify/compress images in the repository. Props desrosj. Fixes #58996. git-svn-id: https://develop.svn.wordpress.org/trunk@57322 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Revert accidental change to `Gruntfile.js`Pascal Birchler2023-10-13
| | | | | | | | This is a follow-up to r56926. See #59517. git-svn-id: https://develop.svn.wordpress.org/trunk@56927 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Migrate Puppeteer tests to Playwright.Pascal Birchler2023-10-13
| | | | | | | | | | As per the migration plan shared last year, this migrates all browser-based tests in WordPress core to use Playwright. This includes end-to-end, performance, and visual regression tests. Props swissspidy, mamaduka, kevin940726, bartkalisz, desrosj, adamsilverstein. Fixes #59517. git-svn-id: https://develop.svn.wordpress.org/trunk@56926 602fd350-edb4-49c9-b593-d223f7449a82
* Update editor related npm packagesTammie Lister2023-09-26
| | | | | | | | | | | | The npm packages needed updating for 6.4 to the latest. Props mikachan, mukesdpanchal27, luisherranz, youknowriad, tellthemachines, gziolo, ockham, michalczaplinski Fixes #59411 git-svn-id: https://develop.svn.wordpress.org/trunk@56710 602fd350-edb4-49c9-b593-d223f7449a82
* Build Tools: Avoid doing `copy:dynamic` when running `grunt watch` when ↵Weston Ruter2023-08-24
| | | | | | | | | | | | using `--dev` option. This prevents erroneously copying a file from source onto itself in source. Props westonruter, jorbin. Fixes #59196. git-svn-id: https://develop.svn.wordpress.org/trunk@56461 602fd350-edb4-49c9-b593-d223f7449a82
* Embeds: Modernize wp-embed script with removal of obsolete IE10/IE11 code ↵Weston Ruter2023-08-10
| | | | | | | | | | | | | | | | | and support for WP<4.4. * Remove obsolete `load` event handler in `wp-embed` since IE10+ support `DOMContentLoaded`. * Replace obsolete use of `document.createElement('a')` in favor of the newer `URL` class (supported in all browsers but obsolete IE11). * Remove obsolete IE10/IE11 code. * Combine conditionals. * Use `substring()` instead of deprecated `substr()` method. * Eliminate the stipulation that `wp-embed.js` not include ampersands, considering this was put in place for WP<4.3 which now accounts for only 1.43% of sites. This includes the elimination of the `verify:wp-embed` grunt task. Props westonruter, swissspidy. Fixes #58974. git-svn-id: https://develop.svn.wordpress.org/trunk@56383 602fd350-edb4-49c9-b593-d223f7449a82
* Build Tools: Remove outmoded jsvalidate task from Gruntfile.K. Adam White2023-07-17
| | | | | | | | | | | | grunt-jsvalidate was added to catch situations where minification introduced parsing errors in Internet Explorer. IE is no longer supported by WordPress, and the grunt task itself has not been maintained for a decade. Removing this task simplifies the build and avoids false-positive warnings where the outdated tool flags modern JS syntax incorrectly. Props westonruter, joemcgill, jorbin, youknowriad, desrosj, swissspidy. Fixes #58645. See #26615. git-svn-id: https://develop.svn.wordpress.org/trunk@56247 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: update Wordpress npm packages.Bernie Reiter2023-06-27
| | | | | | | | | Updates the wordpress npm packages and their dependencies to the latest versions, as well as auto-updates to relevant core PHP files. Props youknowriad, joemcgill, spacedmonkey, ramonopoly, peterwilsoncc, bernhard-reiter, tyxla, dmsnell. Fixes #58623. git-svn-id: https://develop.svn.wordpress.org/trunk@56065 602fd350-edb4-49c9-b593-d223f7449a82
* Upgrade/Install: Show/hide toggle on password fields.Joe Dolson2023-06-23
| | | | | | | | | Add a show/hide toggle for new passwords in initial user creation and database access during install and setup process using the same model as on user profiles. Add a new password toggle script. Change setup config table to two columns, matching the install table layout. Props xmarcos, matt, markjaquith, nazgul, akbigdog, intoxination, rob1n, MichaelH, empireoflight, rmccue, markoheijnen, r0uter, amansurov, bi0xid, DrewAPicture, Narthur, wpnook, markparnell, costdev, clorith, ryokuhi, sabernhardt, bgoewert, ironprogrammer, adeltahri, joedolson, mukesh27, audrasjb, sergeybiryukov. Fixes #3534. git-svn-id: https://develop.svn.wordpress.org/trunk@56008 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Fix cleaning of old CSS files in `wp-includes/blocks/*`. ↵Andrew Ozz2023-03-09
| | | | | | | | | Have to be cleaned earlier, before Webpack runs. Not together with the rest of the CSS files. Props: ironprogrammer, petitphp, hellofromTonya, azaozz. Fixes: #57891. git-svn-id: https://develop.svn.wordpress.org/trunk@55494 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Remove all previously built files when running `clean:files`.Andrew Ozz2023-03-08
| | | | | | | | | | Cleans old JS, CSS and Webpack files from /src so they are not automatically copied to /build when running `grunt build`. Fixes errors that may be caused by copying outdated files and/or directories to /build. Props: desrosj, isabel_brison, SergeyBiryukov, ironprogrammer, mukesh27, robinwpdeveloper, razthee007, costdev, peterwilsoncc, azaozz. Fixes: #47749. git-svn-id: https://develop.svn.wordpress.org/trunk@55484 602fd350-edb4-49c9-b593-d223f7449a82
* Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class.Andrew Ozz2023-02-02
| | | | | | | | | Patches twemoji.js to add support for a `doNotParse()` callback. Uses that callback to always exclude emojis in HTML elements with the above class. Props: dd32, peterwilsoncc, azaozz. Fixes #52219. git-svn-id: https://develop.svn.wordpress.org/trunk@55186 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Update PostCSS to version 8.Jonathan Desrosiers2023-01-27
| | | | | | | | | | This updates PostCSS related dependencies for the main Core build process to versions that use the latest major version of PostCSS, 8.x. There were no changes to any versioned CSS files as a result of this update directly. However, two occurrences of `-o-tab-size` have been removed due to the version of `caniuse-lite` used being updated in the process. See #57554, #57555. git-svn-id: https://develop.svn.wordpress.org/trunk@55150 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Improve how combined assets are generatedGreg Ziółkowski2022-09-23
| | | | | | | | | | | | | | | | Allows to revert changes applied in [54277] - temporary workaround for the failing Test NPM CI check on Windows. Improvements included: - generate combined asset files for both production and development - store in the repository only the production version of the combined assets for packages, we use everything else only in development - to make unit tests work, ensure that they ignore react fast refresh and use the production version of combined assets that are present in the source code Props bernhard-reiter, jsnajdr, clorith, wildworks. Fixes #56615. git-svn-id: https://develop.svn.wordpress.org/trunk@54289 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Improve block loading PHP performance.Sergey Biryukov2022-09-21
| | | | | | | | | | | | | | | This commit improves PHP performance for core blocks by reading a single PHP file with block metadata, instead of reading a JSON file per-block and then decoding from JSON to PHP. Includes: * Adding a new Grunt task to convert `block.json` files to `block-json.php`. * Using the new `block-json.php` file in the `register_block_type_from_metadata()` function. Follow-up to [48141]. Props aristath, gziolo, johnbillion, presstoke, mukesh27, hellofromTonya, petitphp, adamsilverstein, costdev, desrosj, SergeyBiryukov. Fixes #55005. git-svn-id: https://develop.svn.wordpress.org/trunk@54276 602fd350-edb4-49c9-b593-d223f7449a82
* Tools: Automate backporting core blocks from Gutenberg to CoreGreg Ziółkowski2022-07-08
| | | | | | | | | | | | Syncing stable blocks from the Gutenberg repository to wordpress-develop was a manual process, but it got automated with the script that runs together with syncing WordPress packages changed in the Gutenberg package. Props zieladam. Fixes #56179. git-svn-id: https://develop.svn.wordpress.org/trunk@53688 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update WordPress packages for 6.0 RC 2 (part 2)Greg Ziółkowski2022-05-10
| | | | | | | | | | | Includes cherry-picked commit from the Gutenberg plugin that fix a bug discovere just before WordPress 6.0 RC 2. Props hellofromtonya, zieladam, kebbet. See #55567. git-svn-id: https://develop.svn.wordpress.org/trunk@53378 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update WordPress packages for 6.0 Beta 4Greg Ziółkowski2022-05-02
| | | | | | | | | | | | Included cherry-picked commits from the Gutenberg plugin that fix bugs discovere after WordPress 6.0 Beta 3. Props zieladam, ndiego, darerodz. See #55567. git-svn-id: https://develop.svn.wordpress.org/trunk@53329 602fd350-edb4-49c9-b593-d223f7449a82
* Docs: Adjust comments in `Gruntfile.js` per the documentation standards.Sergey Biryukov2022-04-29
| | | | | | See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@53314 602fd350-edb4-49c9-b593-d223f7449a82
* Tools: Further automate backporting from Gutenberg to CoreGreg Ziółkowski2022-04-29
| | | | | | | | | | | | | 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53311 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Enable React Fast Refresh for block developmentGreg Ziółkowski2022-04-11
| | | | | | | | | | | | Brings the same functionality introduced in the Gutenberg plugin with https://github.com/WordPress/gutenberg/pull/28273. In effect, it brings React Fast Refresh support to WordPress core for block development with `@wordpress/scripts`. Props walbo, antonvlasenko. See #51750, #55505. Follow-up [53135]. git-svn-id: https://develop.svn.wordpress.org/trunk@53140 602fd350-edb4-49c9-b593-d223f7449a82
* External libraries: Update jQuery Color to 2.2.0Marius L. J2022-02-01
| | | | | | | | | The NPM package for jQuery Color was updated in [50543], but a bundled version still existed within core. This removes that bundled version, in favor of expanding the Grunt build steps to include the package from NPM instead. Fixes #55016. See #51405. git-svn-id: https://develop.svn.wordpress.org/trunk@52657 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Remove the `replace:emoji-banner-text` Grunt task.Sergey Biryukov2021-12-06
| | | | | | | | | | | | | | The task was previously used to ensure that `/*! This file is auto-generated */` comment is not included on front end as part of the inline emoji detection script. As the `wp-emoji-loader.js` script is now included via `file_get_contents()` and `wp_print_inline_script_tag()` instead of `grunt-include` to simplify the logic, the task does not find anything to replace and is no longer necessary. Additionally, include a line break before the `wp-emoji-loader.js` script content for better line wrapping. Follow-up to [48096], [50651], [52132]. See #44632, #44306, #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@52325 602fd350-edb4-49c9-b593-d223f7449a82
* Embeds: Conditionally enqueue `wp-embed` only if needed and send `ready` ↵Weston Ruter2021-11-11
| | | | | | | | | | | | | | | message in case script loads after post embed windows. * Prevent loading `wp-embed` script unconditionally on every page in favor of conditionally enqueueing when a post embed is detected. The `wp-embed` script is also explicitly marked as being in the footer group. Sites which currently disable post embed scripts from being enqueued via `remove_action( 'wp_head', 'wp_oembed_add_host_js' )` will continue to do so. * Send a `ready` message from the host page to each post embed window in case the `iframe` loads before the `wp-embed` script does. When the `ready` message is received by the post embed window, it sends the same `height` message as it sends when it loads. * Eliminate use of `grunt-include` to inject emoji script and the post embed script. Instead obtain the script contents via `file_get_contents()` (as is done elsewhere in core) and utilize `wp_print_inline_script_tag()`/`wp_get_inline_script_tag()` to construct out the script. This simplifies the logic and allows the running of src without `SCRIPT_DEBUG` enabled. * For the embed code that users are provided to copy for embedding outside of WP, add the `secret` on the `blockquote` and `iframe`. This ensures the `blockquote` will be hidden when the `iframe` loads. The embed code in question is accessed here via `get_post_embed_html()`. Props westonruter, swissspidy, pento, flixos90, ocean90. Fixes #44632, #44306. git-svn-id: https://develop.svn.wordpress.org/trunk@52132 602fd350-edb4-49c9-b593-d223f7449a82
* Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.Riad Benguella2021-11-08
| | | | | | | | | | | | This brings the JS packages up to date and is the first step that will allow us to include the other block editor updates for WordPress 5.9: FSE infrastrucutre, site editor and global styles. Props noisysocks. See #54337. git-svn-id: https://develop.svn.wordpress.org/trunk@52042 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Clean `css/dist` as part of the webpack build step.Peter Wilson2021-09-01
| | | | | | | | | | | | | Move the cleaning of the `wp-includes/css/dist` folder from `clean:css` to `clean:webpack-assets` to avoid an order of operations issue in which the files were built shortly before been deleted later in the build process. Follow up to [51689]. Props netweb, ramonopoly, peterwilsoncc. Fixes #53719. git-svn-id: https://develop.svn.wordpress.org/trunk@51713 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Remove `css/dist` in `grunt clean` command.Peter Wilson2021-08-30
| | | | | | | | | | | Modify the `grunt clean:css` command to include the folder `wp-includes/css/dist` to ensure legacy files do not remain if the built files are removed/relocated. Props desrosj, netweb. Fixes #53719. git-svn-id: https://develop.svn.wordpress.org/trunk@51689 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Split packages and blocks to their webpack configsgziolo2021-07-28
| | | | | | | | | | | | | | | | | It aligns with the changes proposed added in Gutenberg: https://github.com/WordPress/gutenberg/pull/33293. The idea here is to split the growing webpack config into two parts: blocks and packages. We need to add handling for JavaScript files that are going to be used with blocks on the frontend. They didn't work quite well with the current setup for entry points created for packages. As part of the effort, it adds support for `viewScript` in `block.json` metadata file that is later translated to `$view_script` in `WP_Block_Type` class and exposed as `view_script` from the REST API endpoint for block types. Props youknowriad, desrosj, aristath. Fixes #53690. git-svn-id: https://develop.svn.wordpress.org/trunk@51501 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Add assertions to ensure version-controlled files are not ↵John Blackbourn2021-07-06
| | | | | | | | | | | | | modified during CI, and fix the `grunt clean` command. Some tests and some commands that run during the build steps modify files that are under version control. This adds assertions to ensure that these files don't remain in a modified state after the test runs on CI. This also fixes the `grunt clean` command which erroneously deletes `script-loader-packages.php`. This file is re-populated during the build, but deleting it during the clean is undesirable. Fixes #53606 git-svn-id: https://develop.svn.wordpress.org/trunk@51355 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Revert [51259-51256,51265].Jonathan Desrosiers2021-06-30
| | | | | | | | [51259] introduced a PHP notice that was not actually fixed by [51265]. Reverting these changes in order to investigate further. See #53397. git-svn-id: https://develop.svn.wordpress.org/trunk@51268 602fd350-edb4-49c9-b593-d223f7449a82
* Build: Split packages and blocks to their webpack configs.Riad Benguella2021-06-29
| | | | | | | | | | | This also adds support for the viewScript for blocks fixing the PDF preview for file blocks. Props desrosj, gziolo. See #53397. git-svn-id: https://develop.svn.wordpress.org/trunk@51259 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Ignore sourceMaps for non WordPress Core files.Jonathan Desrosiers2021-06-16
| | | | | | | | | | | If a custom plugin or theme exists in the `build/wp-content` directory with a sourcemap, the build` script is currently returning a warning and failing. This improves the `verify:source-maps` task in Grunt to ignore directories and files that do not belong to WordPress Core. Props ryelle, afragen, johnbillion. Fixes #52689. git-svn-id: https://develop.svn.wordpress.org/trunk@51173 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Use the Composer-installed version of PHPUnit for Grunt tasks.Sergey Biryukov2021-05-25
| | | | | | | | | | | | | This makes it easier to run `phpunit` Grunt tasks without having to figure out how and which PHPUnit version needs to be installed. It also more closely matches the `format:php` task. Follow-up to [47881]. Props ocean90. Fixes #53015. git-svn-id: https://develop.svn.wordpress.org/trunk@51016 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Update WordPress packages published for Gutenberg 10.6Greg Ziółkowski2021-05-19
| | | | | | | | | | | | | | | | It contains several changes in addition to regular update to WordPress packages: - All newly exposed blocks are now registered on the server. - Dutone block support was added. - Border block support was updated. - New shared function `construct_wp_query_args` was added for the family of Query blocks - it might need some further work. Props youknowriad. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@50929 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Remove remaining Travis CI references.Dominik Schilling2021-04-10
| | | | | | | | | | | | * Remove `travis:` tasks in Gruntfile.js. * Remove status badge in README.md that comes from Travis CI via shields.io. * Remove Travis CI related skipping in the `WP_UnitTestCase_Base::skipOnAutomatedBranches()` test method and related Docker environment variables. Props johnbillion, SergeyBiryukov, ocean90. See #52161. Fixes #52666. git-svn-id: https://develop.svn.wordpress.org/trunk@50697 602fd350-edb4-49c9-b593-d223f7449a82
* Build/Test Tools: Rename some Grunt tasks to use hyphens instead of camelCase.Sergey Biryukov2021-04-03
| | | | | | | | | | This makes the task names more consistent with other tasks. Follow-up to [41043], [48096], [50650]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50651 602fd350-edb4-49c9-b593-d223f7449a82
* External Libraries: Update Underscore to version 1.12.1.David Baumwald2021-04-02
| | | | | | | | | | | Full set of changes at https://github.com/jashkenas/underscore/compare/1.8.3...1.12.1. The new version includes a `sourceMappingURL` that causes a build failure, so this change also introduces a task to remove this from the source during the build. Props mukesh27, hareesh-pillai, desrosj, SergeyBiryukov, TimoTijhof. Fixes #45785. git-svn-id: https://develop.svn.wordpress.org/trunk@50650 602fd350-edb4-49c9-b593-d223f7449a82