|
| 1 | +{ |
| 2 | + "name": "api-clients/scrutinizer", |
| 3 | + "description": "Async first Scrutinizer API client", |
| 4 | + "license": "MIT", |
| 5 | + "authors": [ |
| 6 | + { |
| 7 | + "name": "Cees-Jan Kiewiet", |
| 8 | + |
| 9 | + } |
| 10 | + ], |
| 11 | + "require": { |
| 12 | + "php": "^7.0", |
| 13 | + "api-clients/client-services": "^1.3", |
| 14 | + "api-clients/foundation": "^1.0", |
| 15 | + "api-clients/middleware-http-exceptions": "^2.0", |
| 16 | + "api-clients/middleware-json": "^3.0", |
| 17 | + "api-clients/middleware-user-agent": "^2.0", |
| 18 | + "api-clients/rx": "^2.2", |
| 19 | + "api-clients/transport": "^3.0" |
| 20 | + }, |
| 21 | + "require-dev": { |
| 22 | + "api-clients/resource-generator": "^1.0", |
| 23 | + "api-clients/resource-test-utilities": "^1.0", |
| 24 | + "api-clients/test-utilities": "4.1" |
| 25 | + }, |
| 26 | + "autoload": { |
| 27 | + "psr-4": { |
| 28 | + "ApiClients\\Client\\Scrutinizer\\": "src/" |
| 29 | + } |
| 30 | + }, |
| 31 | + "autoload-dev": { |
| 32 | + "psr-4": { |
| 33 | + "ApiClients\\Tests\\Client\\Scrutinizer\\": "tests/" |
| 34 | + } |
| 35 | + }, |
| 36 | + "config": { |
| 37 | + "sort-packages": true, |
| 38 | + "platform": { |
| 39 | + "php": "7.0" |
| 40 | + } |
| 41 | + }, |
| 42 | + "extra": { |
| 43 | + "api-clients": { |
| 44 | + "command-bus": { |
| 45 | + "path": "src/CommandBus", |
| 46 | + "namespace": "ApiClients\\Client\\Scrutinizer\\CommandBus" |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
| 50 | + "scripts": { |
| 51 | + "ensure-installed": "composer install --ansi -n -q", |
| 52 | + "generate-resources": [ |
| 53 | + "@ensure-installed", |
| 54 | + "api-client-resource-generator ./resources.yml" |
| 55 | + ], |
| 56 | + "cs": [ |
| 57 | + "@ensure-installed", |
| 58 | + "php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating" |
| 59 | + ], |
| 60 | + "cs-fix": [ |
| 61 | + "@ensure-installed", |
| 62 | + "php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating" |
| 63 | + ], |
| 64 | + "unit": [ |
| 65 | + "@ensure-installed", |
| 66 | + "phpunit --colors=always -c phpunit.xml.dist" |
| 67 | + ], |
| 68 | + "unit-coverage": [ |
| 69 | + "@ensure-installed", |
| 70 | + "phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml" |
| 71 | + ], |
| 72 | + "lint-php": [ |
| 73 | + "@ensure-installed", |
| 74 | + "parallel-lint --exclude vendor ." |
| 75 | + ], |
| 76 | + "qa-all": [ |
| 77 | + "@lint-php", |
| 78 | + "@cs", |
| 79 | + "@unit" |
| 80 | + ], |
| 81 | + "qa-all-coverage": [ |
| 82 | + "@lint-php", |
| 83 | + "@cs", |
| 84 | + "@unit-coverage" |
| 85 | + ], |
| 86 | + "qa-windows": [ |
| 87 | + "@lint-php", |
| 88 | + "@cs", |
| 89 | + "@unit" |
| 90 | + ], |
| 91 | + "qa-ci": [ |
| 92 | + "@unit" |
| 93 | + ], |
| 94 | + "qa-ci-extended": [ |
| 95 | + "@qa-all-coverage" |
| 96 | + ], |
| 97 | + "qa-ci-windows": [ |
| 98 | + "@qa-windows" |
| 99 | + ], |
| 100 | + "qa-contrib": [ |
| 101 | + "@qa-all" |
| 102 | + ], |
| 103 | + "ci-coverage": [ |
| 104 | + "if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi" |
| 105 | + ] |
| 106 | + } |
| 107 | +} |
0 commit comments