Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #8720 from fedys/deduplicate-composer-post-scripts
Browse files Browse the repository at this point in the history
Deduplicate composer.json post-* scripts
  • Loading branch information
RCheesley committed Jul 30, 2020
2 parents e0d3385 + ea85c45 commit 51c488e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions composer.json
Expand Up @@ -142,17 +142,17 @@
}
],
"scripts": {
"post-install-cmd": [
"auto-scripts": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"php -r \"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\"",
"php -r \"if(file_exists('./.git/hooks/pre-commit')&&(PHP_OS!='WINNT')){chmod('./.git/hooks/pre-commit',0755);}\""
],
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"php -r \"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\"",
"php -r \"if(file_exists('./.git/hooks/pre-commit')&&(PHP_OS!='WINNT')){chmod('./.git/hooks/pre-commit',0755);}\""
"@auto-scripts"
],
"test": "bin/phpunit --bootstrap vendor/autoload.php --configuration app/phpunit.xml.dist",
"phpstan": "bin/phpstan analyse app/bundles plugins",
Expand Down

0 comments on commit 51c488e

Please sign in to comment.