-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
composer.json
72 lines (72 loc) · 2.99 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"name": "stolt/lean-package-validator",
"description": "Library and CLI for validating if a project or package has and will have lean releases.",
"keywords": ["project", "package", "release", "lean", "gitattributes" , "dist", "validation", "cli", "dev"],
"license": "MIT",
"authors": [
{
"name": "Raphael Stolt",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.1",
"sebastian/diff": "^6.0.1||^5.0||^4.0.3",
"symfony/console": "^7.1.0||^v5.4.8"
},
"autoload": {
"psr-4": {
"Stolt\\LeanPackage\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Stolt\\LeanPackage\\Tests\\": "tests/"
}
},
"type": "library",
"minimum-stability": "stable",
"bin": ["bin/lean-package-validator"],
"scripts-descriptions": {
"lpv:test": "Runs all tests.",
"lpv:test-with-coverage": "Runs all tests and measures code coverage.",
"lpv:cs-fix": "Fixes coding standard violations.",
"lpv:cs-lint": "Checks for coding standard violations.",
"lpv:configure-commit-template": "Configures a local commit message template.",
"lpv:application-version-guard": "Checks that the application version matches the given Git tag.",
"lpv:application-phar-version-guard": "Checks that the PHAR version matches the given Git tag.",
"lpv:static-analyse": "Runs a static code analysis via PHPStan.",
"lpv:validate-gitattributes": "Checks the leanness of this package.",
"lpv:pre-commit-check": "Does a final (aggregated) check before committing."
},
"scripts": {
"lpv:test": "phpunit",
"lpv:test-with-coverage": "export XDEBUG_MODE=coverage && phpunit --coverage-html coverage-reports",
"lpv:cs-fix": "php-cs-fixer --allow-risky=yes fix . -vv || true",
"lpv:cs-lint": "php-cs-fixer fix --diff --stop-on-violation --verbose --dry-run --allow-risky=yes",
"lpv:configure-commit-template": "git config --add commit.template .gitmessage",
"lpv:application-version-guard": "php bin/application-version --verify-tag-match=bin",
"lpv:application-phar-version-guard": "php bin/application-version --verify-tag-match=phar",
"lpv:static-analyse": "phpstan analyse --configuration phpstan.neon.dist",
"lpv:validate-gitattributes": "bin/lean-package-validator validate",
"lpv:pre-commit-check": [
"@lpv:test",
"@lpv:cs-lint",
"@lpv:static-analyse"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"mockery/mockery": "^1.0",
"phlak/semver": "^4.1 || ^6.0",
"php-mock/php-mock-phpunit": "^2.7||^1.1",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^11.2.6||^10.5.25",
"zenstruck/console-test": "^1.6"
}
}