Changeset 47168
- Timestamp:
- 02/02/2020 07:17:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/webpack/packages.js
r47035 r47168 95 95 }; 96 96 97 const blockNames = [ 98 'archives', 99 'block', 100 'calendar', 101 'categories', 102 'latest-comments', 103 'latest-posts', 104 'rss', 105 'search', 106 'shortcode', 107 'tag-cloud', 108 ]; 97 109 const phpFiles = { 98 110 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php', 99 'block-library/src/archives/index.php': 'wp-includes/blocks/archives.php', 100 'block-library/src/block/index.php': 'wp-includes/blocks/block.php', 101 'block-library/src/calendar/index.php': 'wp-includes/blocks/calendar.php', 102 'block-library/src/categories/index.php': 'wp-includes/blocks/categories.php', 103 'block-library/src/latest-comments/index.php': 'wp-includes/blocks/latest-comments.php', 104 'block-library/src/latest-posts/index.php': 'wp-includes/blocks/latest-posts.php', 105 'block-library/src/rss/index.php': 'wp-includes/blocks/rss.php', 106 'block-library/src/search/index.php': 'wp-includes/blocks/search.php', 107 'block-library/src/shortcode/index.php': 'wp-includes/blocks/shortcode.php', 108 'block-library/src/tag-cloud/index.php': 'wp-includes/blocks/tag-cloud.php', 111 ...blockNames.reduce( ( files, blockName ) => { 112 files[ `block-library/src/${ blockName }/index.php` ] = `wp-includes/blocks/${ blockName }.php`; 113 return files; 114 } , {} ), 115 }; 116 const blockMetadataCopies = { 117 from: join( baseDir, `node_modules/@wordpress/block-library/src/+(${ blockNames.join( '|' ) })/block.json` ), 118 test: new RegExp( `\/([^/]+)\/block\.json$` ), 119 to: join( baseDir, `${ buildTarget }/blocks/[1]/block.json` ), 109 120 }; 110 121 … … 232 243 ...cssCopies, 233 244 ...phpCopies, 245 blockMetadataCopies, 234 246 ], 235 247 ),
Note: See TracChangeset
for help on using the changeset viewer.