Skip to content

Commit bc567fd

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61458 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 76ca772 commit bc567fd

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

Gruntfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,6 @@ module.exports = function(grunt) {
14571457
} );
14581458

14591459
grunt.registerTask( 'gutenberg-integrate', 'Complete Gutenberg integration workflow.', [
1460-
'gutenberg-checkout',
14611460
'gutenberg-build',
14621461
'gutenberg-copy'
14631462
] );

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"wicg-inert": "3.1.3"
9898
},
9999
"scripts": {
100+
"postinstall": "npm run gutenberg:checkout",
100101
"build": "grunt build",
101102
"build:dev": "grunt build --dev",
102103
"dev": "grunt watch --dev",

0 commit comments

Comments
 (0)