Skip to content

Commit 91a598d

Browse files
committed
Add a list of files copied by tools/gutenberg/*
1 parent 65bdb60 commit 91a598d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Gruntfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ module.exports = function(grunt) {
4747
'wp-includes/js/',
4848
],
4949

50+
// All files copied from the Gutenberg repository.
51+
gutenbergFiles = [
52+
'wp-includes/assets',
53+
'wp-includes/build',
54+
// This is redundant given the next line, but included for clarity.
55+
'wp-includes/script-modules',
56+
'wp-includes/js/dist',
57+
'wp-includes/css/dist',
58+
'wp-includes/blocks',
59+
'!wp-includes/blocks/index.php',
60+
'wp-includes/icons',
61+
],
62+
5063
// All files built by Webpack, in /src or /build.
5164
// Webpack now only builds Core-specific media files and development scripts.
5265
// Blocks, packages, script modules, and vendors come from the Gutenberg build.
@@ -233,6 +246,11 @@ module.exports = function(grunt) {
233246
'webpack-assets': webpackFiles.map( function( file ) {
234247
return setFilePath( WORKING_DIR, file );
235248
} ),
249+
250+
// Clean files built by the tools/gutenberg scripts.
251+
gutenberg: gutenbergFiles.map( function( file ) {
252+
return setFilePath( WORKING_DIR, file );
253+
}),
236254
dynamic: {
237255
dot: true,
238256
expand: true,

0 commit comments

Comments
 (0)