Skip to content

Commit

Permalink
Fix phar build #69 (#71)
Browse files Browse the repository at this point in the history
* Fix phar build #69

templates folder was missing in the resulting pharchive.
cleaned the finder paths to the necessary minimum.

* Set version to 2.3.1
  • Loading branch information
calbrecht authored Jan 24, 2020
1 parent ef2e22f commit 79342b7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"alias": "phpcb.phar",
"compactors": [
"KevinGH\\Box\\Compactor\\Json",
"KevinGH\\Box\\Compactor\\Php"
],
"directories": ["src", "templates"],
"files": [
"LICENSE",
"vendor/autoload.php"
],
"finder": [
{
"name": "*.php",
"path": [
"monolog/monolog",
"phpunit/php-file-iterator",
"psr/log",
"symfony/console",
"symfony/service-contracts"
],
"notPath": [
"Tests",
"test",
"tests"
],
"in": "vendor"
}
],
"git-commit": "git-commit",
"git-version": "git-version",
"output": "phpcb-2.3.1.phar"
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
],
"clean": "rm -rf build/logs/* build/code-browser",
"browser": "bin/phpcb -l build/logs -o build/code-browser -s src",
"phar": "php -d phar.readonly=0 vendor/bin/box build"
"phar": "php vendor/bin/box compile"
}
}

0 comments on commit 79342b7

Please sign in to comment.