Skip to content

Instantly share code, notes, and snippets.

@abbadon1334
Last active June 27, 2019 18:14
Show Gist options
  • Save abbadon1334/30896f6364de71c84745b90f7c2b2797 to your computer and use it in GitHub Desktop.
Save abbadon1334/30896f6364de71c84745b90f7c2b2797 to your computer and use it in GitHub Desktop.
my actual composer.json for development with script for phpstan cs-fixer phpunit metrics coverage atk4
{
"name": "abbadon1334/nemesi",
"description": "description",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Francesco Danti",
"email": "fdanti@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2",
"atk4/ui": "dev-develop@dev",
"http-interop/response-sender": "^1.0",
"middlewares/fast-route": "^1.2",
"middlewares/payload": "^2.1",
"middlewares/request-handler": "^1.4",
"middlewares/response-time": "^1.1",
"middlewares/whoops": "^1.2",
"zendframework/zend-diactoros": "^2.1"
},
"require-dev": {
"phpunit/phpunit": "*",
"symfony/yaml": "~2.1|~3.0|~4.0",
"thecodingmachine/phpstan-safe-rule": "^0.1.0@dev",
"phpmetrics/phpmetrics": "dev-master@dev",
"phpstan/phpstan": "0.11.5",
"phpmd/phpmd": "2.6.0",
"squizlabs/php_codesniffer": "3.4.2",
"friendsofphp/php-cs-fixer": "dev-master@dev"
},
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Nemesi\\": "src/Nemesi/",
"atk4\\core\\": "src/atk4-ext/core/src/",
"atk4\\PSRContainer\\": "src/atk4-ext/psr-container/src/"
}
},
"autoload-dev": {
"psr-4": {
"atk4\\core\\tests\\": "src/atk4-ext/core/tests/",
"atk4\\PSRContainer\\tests\\": "src/atk4-ext/psr-container/tests/"
}
},
"scripts": {
"fix": "php-cs-fixer fix",
"stan": "phpstan analyse src config",
"stan1": "phpstan analyse --level 1 src config",
"stan2": "phpstan analyse --level 2 src config",
"stan3": "phpstan analyse --level 3 src config",
"stan4": "phpstan analyse --level 4 src config",
"stan5": "phpstan analyse --level 5 src config",
"stan6": "phpstan analyse --level 6 src config",
"stan7": "phpstan analyse --level 7 src config",
"metrics": [
"mkdir -p ./build/report",
"mv ./build/report ./build/report_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpmetrics --config=./.phpmetrics.json .",
"firefox ./build/report/phpmetrics.html/index.html"
],
"metrics-clear": [
"rm -rf ./build/report_*",
"rm -rf ./build/report"
],
"unit": [
"mkdir -p ./build/coverage",
"mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpunit --configuration phpunit.xml"
],
"unit-html": [
"mkdir -p ./build/coverage",
"mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpunit --configuration phpunit.xml --coverage-html ./build/coverage",
"firefox ./build/coverage/index.html"
],
"unit-clear": [
"rm -rf ./build/coverage_*",
"rm -rf ./build/coverage"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment