Make WordPress Core

Changeset 61458


Ignore:
Timestamp:
01/09/2026 09:21:16 AM (8 weeks ago)
Author:
youknowriad
Message:

Build: Move Gutenberg checkout to a postinstall script.

This separates dependency setup from the build process by running
the Gutenberg checkout during npm install rather than before each
build. Build times decrease by approximately 30 seconds since the
checkout now occurs once during installation.

Props youknowriad, dmsnell.
See #64393.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r61438 r61458  
    14581458
    14591459    grunt.registerTask( 'gutenberg-integrate', 'Complete Gutenberg integration workflow.', [
    1460         'gutenberg-checkout',
    14611460        'gutenberg-build',
    14621461        'gutenberg-copy'
  • trunk/package-lock.json

    r61438 r61458  
    88            "name": "WordPress",
    99            "version": "7.0.0",
     10            "hasInstallScript": true,
    1011            "license": "GPL-2.0-or-later",
    1112            "dependencies": {
  • trunk/package.json

    r61450 r61458  
    9898    },
    9999    "scripts": {
     100        "postinstall": "npm run gutenberg:checkout",
    100101        "build": "grunt build",
    101102        "build:dev": "grunt build --dev",
Note: See TracChangeset for help on using the changeset viewer.