Co-authored-by: Paul Sealock <psealock@gmail.com>
This commit is contained in:
Timmy Crawford 2020-03-16 10:12:23 -07:00 committed by GitHub
parent 8b667d2169
commit f8afb04187
2 changed files with 13 additions and 50 deletions

View File

@ -3,6 +3,6 @@
# Build a test zip from current branch for uploading to test site
#
npm run build
composer install
composer install --no-dev
rm woocommerce-admin.zip
./bin/make-zip.sh woocommerce-admin.zip

View File

@ -21,52 +21,15 @@ output 2 "Creating archive... 🎁"
ZIP_FILE=$1
# Folders listed first then individual files
zip -r ${ZIP_FILE} . \
-x \
.git/\* \
tests/\* \
bin/\* \
config/\* \
node_modules/\* \
vendor/bin/\* \
vendor/dealerdirect/\* \
vendor/doctrine/\* \
vendor/phar-io/\* \
vendor/phpcompatibility/\* \
vendor/phpdocumentor/\* \
vendor/phpspec/\* \
vendor/phpunit/\* \
vendor/sebastian/\* \
vendor/squizlabs/\* \
vendor/theseer/\* \
vendor/webmozart/\* \
vendor/woocommerce/\* \
vendor/wp-coding-standards/\* \
.distignore \
.editorconfig \
.gitignore \
.gitlab-ci.yml \
.travis.yml \
.DS_Store \
.zipignore \
Thumbs.db \
behat.yml \
circle.yml \
composer.json \
composer.lock \
Gruntfile.js \
package.json \
package-lock.json \
phpunit.xml \
phpunit.xml.dist \
multisite.xml \
multisite.xml.dist \
phpcs.xml \
phpcs.xml.dist \
README.md \
wp-cli.local.yml \
yarn.lock \
*.sql \
*.tar.gz \
*.zip
build_files=$(ls dist/*/*.{js,css})
zip -r ${ZIP_FILE} \
woocommerce-admin.php \
uninstall.php \
includes/ \
images/ \
$build_files \
languages/woocommerce-admin.pot \
readme.txt \
src/ \
vendor/