forked from LeetCode-in-Php/LeetCode-in-Php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
60 lines (60 loc) · 1.31 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
{
"name": "javadev/leetcode-in-php",
"type": "project",
"description": "LeetCode in PHP",
"keywords": [
"leetcode",
"algorithm"
],
"license": "MIT",
"authors": [
{
"name": "Valentyn Kolesnikov"
}
],
"require": {
"php": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^0.12.88"
},
"autoload": {
"psr-4": {
"leetcode\\": "src/main/php/"
}
},
"autoload-dev": {
"psr-4": {
"leetcode\\": "src/test/php/"
}
},
"extra": {
"hooks": {
"pre-commit": [
"composer test",
"composer check:style"
],
"pre-push": [
"composer test",
"composer check:style"
]
}
},
"scripts": {
"post-merge": "composer install",
"phpstan": "vendor/bin/phpstan analyse",
"check:style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.php --dry-run --ansi",
"fixed:style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi",
"test": [
"Composer\\Config::disableProcessTimeout",
"vendor/bin/phpunit --colors=always --testdox"
],
"test:coverage": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --color=always --coverage-clover=\"build/logs/clover.xml\""
]
},
"minimum-stability": "dev",
"prefer-stable": true
}