From aa584232ecee905175e175aede63db5f5388027d Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Fri, 13 Oct 2023 11:58:39 +0200 Subject: [PATCH] Remove "scripts" from `composer.json` in subpackages (#577) --- src/adapter/etl-adapter-amphp/composer.json | 25 ----------------- src/adapter/etl-adapter-avro/composer.json | 22 --------------- src/adapter/etl-adapter-chartjs/composer.json | 22 --------------- src/adapter/etl-adapter-csv/composer.json | 22 --------------- .../etl-adapter-doctrine/composer.json | 26 ------------------ .../etl-adapter-elasticsearch/composer.json | 22 --------------- .../etl-adapter-google-sheet/composer.json | 23 ---------------- src/adapter/etl-adapter-http/composer.json | 26 ------------------ src/adapter/etl-adapter-json/composer.json | 22 --------------- src/adapter/etl-adapter-logger/composer.json | 26 ------------------ .../etl-adapter-meilisearch/composer.json | 22 --------------- src/adapter/etl-adapter-parquet/composer.json | 22 --------------- .../etl-adapter-reactphp/composer.json | 25 ----------------- src/adapter/etl-adapter-text/composer.json | 22 --------------- src/adapter/etl-adapter-xml/composer.json | 22 --------------- src/core/etl/composer.json | 27 ------------------- src/lib/array-dot/composer.json | 22 --------------- src/lib/doctrine-dbal-bulk/composer.json | 26 ------------------ 18 files changed, 424 deletions(-) diff --git a/src/adapter/etl-adapter-amphp/composer.json b/src/adapter/etl-adapter-amphp/composer.json index 71d7e2c3e..7dbdc8e4e 100644 --- a/src/adapter/etl-adapter-amphp/composer.json +++ b/src/adapter/etl-adapter-amphp/composer.json @@ -37,31 +37,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "static:analyze": [ - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-avro/composer.json b/src/adapter/etl-adapter-avro/composer.json index 786f3c7a6..a45e35296 100644 --- a/src/adapter/etl-adapter-avro/composer.json +++ b/src/adapter/etl-adapter-avro/composer.json @@ -33,28 +33,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-chartjs/composer.json b/src/adapter/etl-adapter-chartjs/composer.json index b7eb00bf7..2bc3c25f9 100644 --- a/src/adapter/etl-adapter-chartjs/composer.json +++ b/src/adapter/etl-adapter-chartjs/composer.json @@ -31,28 +31,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-csv/composer.json b/src/adapter/etl-adapter-csv/composer.json index 0e527888f..5572f0efe 100644 --- a/src/adapter/etl-adapter-csv/composer.json +++ b/src/adapter/etl-adapter-csv/composer.json @@ -31,28 +31,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-doctrine/composer.json b/src/adapter/etl-adapter-doctrine/composer.json index 9e519018e..b1c04f19f 100644 --- a/src/adapter/etl-adapter-doctrine/composer.json +++ b/src/adapter/etl-adapter-doctrine/composer.json @@ -33,32 +33,6 @@ "optimize-autoloader": true, "sort-packages": true }, - "scripts": { - "tools:install": "composer install --working-dir=./tools", - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "static:analyze": [ - "tools/vendor/bin/psalm", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-elasticsearch/composer.json b/src/adapter/etl-adapter-elasticsearch/composer.json index c393bca04..8de0e4f31 100644 --- a/src/adapter/etl-adapter-elasticsearch/composer.json +++ b/src/adapter/etl-adapter-elasticsearch/composer.json @@ -34,28 +34,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-google-sheet/composer.json b/src/adapter/etl-adapter-google-sheet/composer.json index 04876d3bf..904bcf523 100644 --- a/src/adapter/etl-adapter-google-sheet/composer.json +++ b/src/adapter/etl-adapter-google-sheet/composer.json @@ -33,29 +33,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "pre-autoload-dump": "Google\\Task\\Composer::cleanup", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "extra": { "google/apiclient-services": [ "Sheets" diff --git a/src/adapter/etl-adapter-http/composer.json b/src/adapter/etl-adapter-http/composer.json index 50193937a..ed67664a0 100644 --- a/src/adapter/etl-adapter-http/composer.json +++ b/src/adapter/etl-adapter-http/composer.json @@ -36,32 +36,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-json/composer.json b/src/adapter/etl-adapter-json/composer.json index 499703c4d..9d4f82187 100644 --- a/src/adapter/etl-adapter-json/composer.json +++ b/src/adapter/etl-adapter-json/composer.json @@ -33,28 +33,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-logger/composer.json b/src/adapter/etl-adapter-logger/composer.json index ecb4d2214..fcb76c1d0 100644 --- a/src/adapter/etl-adapter-logger/composer.json +++ b/src/adapter/etl-adapter-logger/composer.json @@ -35,32 +35,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-meilisearch/composer.json b/src/adapter/etl-adapter-meilisearch/composer.json index 743c73525..53b9b41c3 100644 --- a/src/adapter/etl-adapter-meilisearch/composer.json +++ b/src/adapter/etl-adapter-meilisearch/composer.json @@ -34,28 +34,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-parquet/composer.json b/src/adapter/etl-adapter-parquet/composer.json index 0495ecca5..69f651b4d 100644 --- a/src/adapter/etl-adapter-parquet/composer.json +++ b/src/adapter/etl-adapter-parquet/composer.json @@ -33,28 +33,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-reactphp/composer.json b/src/adapter/etl-adapter-reactphp/composer.json index b003899b8..6276655d0 100644 --- a/src/adapter/etl-adapter-reactphp/composer.json +++ b/src/adapter/etl-adapter-reactphp/composer.json @@ -37,31 +37,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "static:analyze": [ - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-text/composer.json b/src/adapter/etl-adapter-text/composer.json index 2a6024128..a637fc163 100644 --- a/src/adapter/etl-adapter-text/composer.json +++ b/src/adapter/etl-adapter-text/composer.json @@ -31,28 +31,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/adapter/etl-adapter-xml/composer.json b/src/adapter/etl-adapter-xml/composer.json index ffb0f8687..f0c75ac0b 100644 --- a/src/adapter/etl-adapter-xml/composer.json +++ b/src/adapter/etl-adapter-xml/composer.json @@ -33,28 +33,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/core/etl/composer.json b/src/core/etl/composer.json index a8c7dc18a..58895c687 100644 --- a/src/core/etl/composer.json +++ b/src/core/etl/composer.json @@ -51,33 +51,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "pre-autoload-dump": "Aws\\Script\\Composer\\Composer::removeUnusedServices", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "extra": { "aws/aws-sdk-php": [ "S3" diff --git a/src/lib/array-dot/composer.json b/src/lib/array-dot/composer.json index 7e1261b2e..b10c32113 100644 --- a/src/lib/array-dot/composer.json +++ b/src/lib/array-dot/composer.json @@ -34,28 +34,6 @@ "Flow\\": "tests/Flow" } }, - "scripts": { - "build": [ - "@static:analyze", - "@test" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "static:analyze": [ - "tools/vendor/bin/psalm --output-format=compact", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "tools:install": "composer install --working-dir=./tools", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/lib/doctrine-dbal-bulk/composer.json b/src/lib/doctrine-dbal-bulk/composer.json index e68bf3aeb..c8d5410fc 100644 --- a/src/lib/doctrine-dbal-bulk/composer.json +++ b/src/lib/doctrine-dbal-bulk/composer.json @@ -32,31 +32,5 @@ "optimize-autoloader": true, "sort-packages": true }, - "scripts": { - "tools:install": "composer install --working-dir=./tools", - "build": [ - "@static:analyze", - "@test", - "@test:mutation" - ], - "static:analyze": [ - "tools/vendor/bin/psalm", - "tools/vendor/bin/phpstan analyze -c phpstan.neon", - "tools/vendor/bin/php-cs-fixer fix --dry-run" - ], - "test": [ - "tools/vendor/bin/phpunit" - ], - "test:mutation": [ - "tools/vendor/bin/infection -j2" - ], - "cs:php:fix": "tools/vendor/bin/php-cs-fixer fix", - "post-install-cmd": [ - "@tools:install" - ], - "post-update-cmd": [ - "@tools:install" - ] - }, "prefer-stable": true }