Skip to content

Commit 07f2cd1

Browse files
change box.json configuration (#118)
* change box.json configuration
1 parent 18e1a98 commit 07f2cd1

File tree

6 files changed

+4
-10
lines changed

6 files changed

+4
-10
lines changed

.github/workflows/build-phar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: 7.3
20+
php-version: 7.4
2121

2222
- name: Validate composer.json and composer.lock
2323
run: composer validate
@@ -37,10 +37,10 @@ jobs:
3737
with:
3838
args: --prefer-dist --no-dev -o
3939
composer_version: 2
40-
php_version: 7.3
40+
php_version: 7.4
4141

4242
- name: "Compile phparkitect phar"
43-
run: ./bin/box compile -c ./box.json
43+
run: ./bin-stub/box.phar compile -c ./box.json
4444

4545
- name: "Smoke test created phar"
4646
run : ./phparkitect.phar

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
.php_cs.cache
55
/web
66
/bin
7-
!/bin/box
87
phparkitect.phar

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ dt: ##it launches tests using container
1313
dbi: ## it creates docker image
1414
docker image build -t phparkitect .
1515

16-
dphar: ## it creates phar inside container
17-
docker run --rm -it --entrypoint= -v $(PWD):/arkitect phparkitect make phar
18-
1916
shell: ## it enters into the container
2017
docker run --rm -it --entrypoint= -v $(PWD):/arkitect phparkitect bash
2118

@@ -32,7 +29,7 @@ phar: ## it creates phar
3229
rm -rf /tmp/arkitect && mkdir -p /tmp/arkitect
3330
cp -R src bin-stub box.json README.md composer.json composer.lock /tmp/arkitect
3431
cd /tmp/arkitect && composer install --prefer-source --no-dev -o
35-
bin/box compile -c /tmp/arkitect/box.json
32+
bin/box.phar compile -c /tmp/arkitect/box.json
3633
cp /tmp/arkitect/phparkitect.phar .
3734

3835
outdated:

bin-stub/box.phar

1.7 MB
Binary file not shown.

bin/box

-1.72 MB
Binary file not shown.

box.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"banner": [
43
"Arkitect"
@@ -10,7 +9,6 @@
109
"compression": "GZ",
1110
"compactors": [
1211
"KevinGH\\Box\\Compactor\\Php",
13-
"KevinGH\\Box\\Compactor\\PhpScoper",
1412
"KevinGH\\Box\\Compactor\\Json"
1513
],
1614
"main": "bin-stub/phparkitect",

0 commit comments

Comments
 (0)