chore: add developer scripts to composer.json
Übergeordneter
4f15d914
No related branches found
No related tags found
wird angezeigt
{ | ||
"name": "quiqqer\/cron", | ||
"name": "quiqqer/cron", | ||
"type": "quiqqer-module", | ||
"description": "This Package provided a cron functionality to QUIQQER. Crons are tasks which to be repeated in intervals.", | ||
"license": "GPL-3.0+", | ||
... | ... | @@ -7,7 +7,7 @@ |
{ | ||
"name": "Henning Leutz", | ||
"email": "leutz@pcsg.de", | ||
"homepage": "http:\/\/www.pcsg.de", | ||
"homepage": "http://www.pcsg.de", | ||
"role": "Developer" | ||
} | ||
], | ||
... | ... | @@ -15,16 +15,58 @@ |
"email": "support@pcsg.de" | ||
}, | ||
"require": { | ||
"quiqqer\/core": "^2", | ||
"quiqqer\/qui": "^1", | ||
"quiqqer\/utils": "^2", | ||
"quiqqer\/requirements": "^3", | ||
"quiqqer/core": "^2", | ||
"quiqqer/qui": "^1", | ||
"quiqqer/utils": "^2", | ||
"quiqqer/requirements": "^3", | ||
"dragonmantank/cron-expression": "^v3.3", | ||
"quiqqer-asset/animejs": "*" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"QUI": "src\/" | ||
"QUI": "src/" | ||
} | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"@dev:lint", | ||
"@dev:phpunit" | ||
], | ||
"dev:phpunit": "./tools/phpunit", | ||
"dev:lint": [ | ||
"@dev:lint:phpstan", | ||
"@dev:lint:style" | ||
], | ||
"dev:lint:phpstan": "./tools/phpstan", | ||
"dev:lint:style": "./tools/phpcs", | ||
"dev:lint:style:fix": "./tools/phpcbf", | ||
"dev:init": [ | ||
"@dev:init:check-requirements", | ||
"@dev:init:tools", | ||
"@dev:init:git-hooks" | ||
], | ||
"dev:init:check-requirements": [ | ||
"which composer > /dev/null || (echo 'Error: composer has to be globally installed'; exit 1)", | ||
"which phive > /dev/null || (echo 'Error: PHIVE has to be globally installed'; exit 1)" | ||
], | ||
"dev:init:tools": "phive install", | ||
"dev:init:git-hooks": "./tools/captainhook install --only-enabled" | ||
}, | ||
"scripts-aliases": { | ||
"test": [ | ||
"dev:test" | ||
] | ||
}, | ||
"scripts-descriptions": { | ||
"test": "Runs linting, static analysis, and unit tests.", | ||
"dev:phpunit": "Run PHPUnit test suites", | ||
"dev:lint": "Run PHPStan and code style check", | ||
"dev:lint:phpstan": "Run PHPStan", | ||
"dev:lint:style": "Run code style check (PHP_CodeSniffer)", | ||
"dev:lint:style:fix": "Try to fix code style errors automatically", | ||
"dev:init": "Initialize the developer tooling (tools and git hooks)", | ||
"dev:init:check-requirements": "Check if the necessary requirements are met", | ||
"dev:init:tools": "Install all developer tools (requires PHIVE)", | ||
"dev:init:git-hooks": "Install all git hooks (may require tools to be installed)" | ||
} | ||
} |
Bitte registrieren oder Anmelden zum Kommentieren