generated from chevere/package-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
71 lines (71 loc) · 2.29 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
{
"name": "chevere/trace",
"description": "Tooling for handling debug_backtrace items",
"homepage": "https://chevere.org",
"type": "library",
"license": "Apache-2.0",
"authors": [
{
"name": "Rodolfo Berrios",
"email": "[email protected]",
"homepage": "https://chevere.org"
}
],
"require": {
"php": "^8.1",
"chevere/var-dump": "^2.0.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.9",
"symplify/easy-coding-standard": "^11.1"
},
"autoload": {
"psr-4": {
"Chevere\\Trace\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Chevere\\Tests\\": "tests/"
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"scripts": {
"all": [
"composer phpstan",
"composer test",
"composer test-coverage",
"composer infection -- --skip-initial-tests --coverage=build/logs"
],
"infection": [
"Composer\\Config::disableProcessTimeout",
"infection --only-covered -j10"
],
"infection-filter": "sh -c 'sh -c \"composer infection -- --filter=$0 --test-framework-options=--filter=$0\"' $1",
"phpstan": "vendor/bin/phpstan analyze src/ --memory-limit 512M --level 9",
"test": [
"Composer\\Config::disableProcessTimeout",
"vendor/bin/phpunit -c phpunit.xml"
],
"test-coverage": [
"Composer\\Config::disableProcessTimeout",
"vendor/bin/phpunit -c phpunit-coverage.xml"
],
"cs-update": "mkdir -p .ecs && cd .ecs && curl -O https://raw.githubusercontent.com/chevere/code-style/main/.ecs/ecs-chevere.php",
"cs-fix": "vendor/bin/ecs --config='.ecs/ecs.php' check src --fix"
},
"scripts-descriptions": {
"all": "Runs all checks",
"infection": "Runs infection",
"infection-filter": "Runs infection (filtered)",
"phpstan": "Runs phpstan",
"test": "Run test suite",
"test-coverage": "Run test suite (coverage)",
"cs-update": "Update Chevere code style definition",
"cs-fix": "Update Chevere code style definition"
}
}