diff --git a/RELEASING.md b/RELEASING.md index 39c6586..833ced9 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -3,6 +3,12 @@ Packagist installs the committed `builds/quickpay` PHAR. A release is built once, reviewed by `Quality`, committed, tagged, and published manually. +The PHAR bundles every package in `vendor/`, development packages included, +because `laravel-zero/framework` is a development dependency that the PHAR runs +on. `box.json` leaves out PHPStan and Larastan, which would otherwise make up +most of the PHAR. Leave out any large development tool added later in the same +place, and check the PHAR's size after building. + ## One-time setup - Connect the GitHub repository to Packagist. diff --git a/box.json b/box.json index 43301cc..120dae6 100644 --- a/box.json +++ b/box.json @@ -3,19 +3,27 @@ "directories": [ "app", "bootstrap", - "config", - "vendor" + "config" ], "files": [ "composer.json" ], "exclude-composer-files": false, - "dump-autoload": false, + "dump-autoload": true, "exclude-dev-files": false, "check-requirements": true, "output": "quickpay.phar", "compression": "GZ", "compactors": [ "KevinGH\\Box\\Compactor\\Php" + ], + "finder": [ + { + "in": "vendor", + "exclude": [ + "phpstan/phpstan", + "larastan/larastan" + ] + } ] }