Skip to content

Commit

Permalink
chore: moving phar packaging from phar-composer to box
Browse files Browse the repository at this point in the history
  • Loading branch information
Niktux committed Nov 9, 2016
1 parent 79a9c28 commit 577055b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ src/.solidifier.yml

# Cache
cache/

# Packaging
php-composer.phar
box.phar
karma.phar
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
phar: phar-composer.phar
php -d phar.readonly=off phar-composer.phar build niktux/karma
BOX_VERSION=2.7.4

local-phar: phar-composer.phar
php -d phar.readonly=off phar-composer.phar build .
phar: box.phar
php -d phar.readonly=off box.phar build

phar-composer.phar:
wget -q https://github.com/clue/phar-composer/releases/download/v1.0.0/phar-composer.phar
box.phar:
wget -q https://github.com/box-project/box2/releases/download/2.7.4/box-${BOX_VERSION}.phar
mv box-${BOX_VERSION}.phar box.phar
20 changes: 20 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"output": "karma.phar",
"chmod": "0755",
"main": "karma",
"compactors": [
"Herrera\\Box\\Compactor\\Php"
],
"extract": false,
"directories": [
"src"
],
"finder": [
{
"name": "*.*",
"exclude": ["Tests"],
"in": "vendor"
}
],
"stub": true
}

0 comments on commit 577055b

Please sign in to comment.