evolaze / binary-symlink
Binary symlink script handler
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/evolaze/binary-symlink
Requires
- php: >=7.1.1
- sensio/distribution-bundle: ^5.0.1
Requires (Dev)
- composer/composer: ^1.1.0
- phpunit/phpunit: ^5.2.1
This package is auto-updated.
Last update: 2022-11-03 11:43:41 UTC
README
Replace platform dependent symlink commands like
"ln -sf ../app/bin/some-binary.sj bin/some-binary.sh"
"ln -sf ../app/bin/some-other-binary.sj bin/other-binary.sh"
with extra config section and post install or\and update trigger
Installation
composer require evolaze/binary-symlink
In order to add link from app/from.sh to bin/to.sh
Composer.json
"scripts": {
"post-install-cmd": [
"Evolaze\\BinarySymlink\\ScriptHandler::installBinary"
]
},
"extra": {
"evolaze-binary-symlink": {
"links": [
{
"from": "from",
"to": "to"
}
]
}
}
Defaults
- Default dir to create links from is app
- Default dir to create links to is bin
Tests
./bin/phpunit -c ./tests/phpunit.xml
- php 7.1+ must be installed
or
./app/composer.sh run-script test
- docker must be installed