Skip to content

Commit 425bc36

Browse files
committed
Build/Test Tools: Use --fast flag for Gutenberg builds.
Adds the `--fast` flag to Gutenberg build commands, which skips TypeScript-related steps (version validation, `tsc --build`, and type declaration file checks) that aren't needed when building for WordPress Core. These steps only produce `.d.ts` files which aren't shipped with Core. Also updates the Gutenberg ref to include the commit that adds `--fast` flag support. The build times are now comparable to the build times we had using the npm packages. Props dmsnell, johnbillion. See #64393. git-svn-id: https://develop.svn.wordpress.org/trunk@61450 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 65772ac commit 425bc36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://develop.svn.wordpress.org/trunk"
88
},
99
"gutenberg": {
10-
"ref": "dea73b609a80016eb1cf3893ea183fe106a06740"
10+
"ref": "892bfad51d2261f44f3a21f934b1c72bd29a2449"
1111
},
1212
"engines": {
1313
"node": ">=20.10.0",

tools/gutenberg/build-gutenberg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async function main() {
148148
? '--base-url="includes_url( \'build\' )"'
149149
: "--base-url=includes_url( 'build' )";
150150

151-
await exec( 'npm', [ 'run', 'build', '--', baseUrlArg ], {
151+
await exec( 'npm', [ 'run', 'build', '--', '--fast', baseUrlArg ], {
152152
cwd: gutenbergDir,
153153
} );
154154

0 commit comments

Comments
 (0)