Skip to content

Commit

Permalink
reduce build size by optimizing vendor and removing it from repo (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlHandy authored Jul 27, 2024
1 parent 55e44c0 commit 4c140f9
Show file tree
Hide file tree
Showing 3,788 changed files with 10 additions and 456,438 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
git checkout main
git pull origin main
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'

- name: Install Composer dependencies
run: composer install --no-dev --optimize-autoloader

- name: Zip project
run: zip -r mmg-checkout-payment.zip main.php uninstall.php vendor/* README.txt js/* assets/* includes/*

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
.idea/inspectionProfiles/Profiles_2023.05.xml
.idea/inspectionProfiles/Profiles_2023.06.xml
.idea/inspectionProfiles/Profiles_2023.07.xml
wp-content/*
wp-content/*
vendor
25 changes: 0 additions & 25 deletions vendor/autoload.php

This file was deleted.

1 change: 0 additions & 1 deletion vendor/automattic/jetpack-autoloader/.gitignore

This file was deleted.

214 changes: 0 additions & 214 deletions vendor/automattic/jetpack-autoloader/CHANGELOG.md

This file was deleted.

76 changes: 0 additions & 76 deletions vendor/automattic/jetpack-autoloader/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions vendor/automattic/jetpack-autoloader/composer.json

This file was deleted.

Loading

0 comments on commit 4c140f9

Please sign in to comment.