Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_%: ## it launches a test

phar: ## it creates phar
rm -rf ${TMP_DIR} && mkdir -p ${TMP_DIR}
cp -R src bin-stub box.json README.md composer.json phparkitect-stub.php bin ${TMP_DIR}
cp -R src bin-stub box.json README.md composer.json phparkitect-stub.php bin scoper.inc.php ${TMP_DIR}
cd ${TMP_DIR} && composer install --prefer-source --no-dev -o
bin/box.phar compile -c ${TMP_DIR}/box.json
cp ${TMP_DIR}/phparkitect.phar .
Expand Down
3 changes: 1 addition & 2 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
],
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\PhpScoper",
"KevinGH\\Box\\Compactor\\Json"
],
"main": "bin-stub/phparkitect",
"output": "phparkitect.phar",
"datetime": "release-date",
"dump-autoload": true,
"exclude-composer-files": false
}
16 changes: 16 additions & 0 deletions scoper.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

return [
'prefix' => '_PhpArkitect',

'expose-global-constants' => true,
'expose-global-classes' => true,
'expose-global-functions' => true,

'exclude-namespaces' => [
'Arkitect',
'Composer',
],
];
Loading