Skip to content

Commit

Permalink
Add phar:build command.
Browse files Browse the repository at this point in the history
  • Loading branch information
kporras07 committed Sep 28, 2021
1 parent ac343c6 commit 816383f
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Self Update Fixture
===================

Fixture package for tests for consolidation/self-update.
18 changes: 18 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"alias": "wonder.phar",
"chmod": "0755",
"compactors": [],
"directories": ["bin", "src"],
"files": ["README.md","composer.lock","composer.json"],
"finder": [
{
"in": "vendor",
"name": "*.php"
}
],
"git-commit": "git-commit",
"git-version": "git-version",
"output": "wonder.phar",
"main": "bin/wonder",
"stub": true
}
26 changes: 25 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,38 @@
"description": "Fixtures project to test consolidation/self-update",
"type": "project",
"require": {
"symfony/console": "^5"
"symfony/console": "^5",
"tm/tooly-composer-script": "^1.4"
},
"bin": ["bin/wonder"],
"scripts": {
"build": "@phar:build",
"phar:build": [
"rm -Rf ./wonder",
"vendor/bin/phar-composer.phar build .",
"mv self-update-fixture.phar wonder",
"chmod +x wonder"
],
"post-install-cmd": [
"Tooly\\ScriptHandler::installPharTools"
],
"post-update-cmd": [
"Tooly\\ScriptHandler::installPharTools"
]
},
"autoload": {
"psr-4": {
"Consolidation\\SelfUpdateFixture\\": "src/"
}
},
"extra": {
"tools": {
"phar-composer": {
"url": "https://clue.engineering/phar-composer-latest.phar",
"dev-only": true
}
}
},
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
86 changes: 85 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 816383f

Please sign in to comment.