Skip to content

Commit

Permalink
Build: Dynamically use JS/CSS build files for ZIP gen
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf authored and aduth committed Mar 20, 2018
1 parent bf81a76 commit ec18afa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ rm -f gutenberg.zip
php bin/generate-gutenberg-php.php > gutenberg.tmp.php
mv gutenberg.tmp.php gutenberg.php

build_files=$(ls **/build/*.{js,css})

# Generate the plugin zip file
status "Creating archive..."
zip -r gutenberg.zip \
Expand All @@ -99,8 +101,7 @@ zip -r gutenberg.zip \
blocks/library/*/*.php \
post-content.js \
$vendor_scripts \
{blocks,components,date,editor,element,hooks,i18n,data,utils,edit-post,viewport,plugins,core-data}/build/*.{js,map} \
{blocks,components,editor,edit-post}/build/*.css \
$build_files \
languages/gutenberg.pot \
languages/gutenberg-translations.php \
README.md
Expand Down

0 comments on commit ec18afa

Please sign in to comment.