File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments