From ea85c451e1ae98d1bafcef5fe93d93f7b7442ac3 Mon Sep 17 00:00:00 2001 From: fedys Date: Thu, 23 Apr 2020 12:56:18 +0200 Subject: [PATCH] Deduplicate composer.json post-* scripts --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 6248e6ea49f..2cf482824f3 100644 --- a/composer.json +++ b/composer.json @@ -141,17 +141,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",