-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
70 lines (70 loc) · 2.46 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
{
"name": "eclipxe/enum",
"description": "Enum based on the Brent Roose enum idea https://stitcher.io/blog/php-enums",
"keywords": ["enum", "reflection"],
"homepage": "https://github.com/eclipxe13/enum",
"license": "MIT",
"authors": [
{
"name": "Carlos C Soto",
"email": "eclipxe13@gmail.com",
"homepage": "https://eclipxe.com.mx/"
}
],
"support": {
"source": "https://github.com/eclipxe13/enum",
"issues": "https://github.com/eclipxe13/enum/issues"
},
"require": {
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
},
"autoload": {
"psr-4": {
"Eclipxe\\Enum\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Eclipxe\\Enum\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"infection/extension-installer": false
}
},
"scripts": {
"dev:build": ["@dev:fix-style", "@dev:test"],
"dev:check-style": [
"@php tools/php-cs-fixer fix --dry-run --verbose",
"@php tools/phpcs --colors -sp"
],
"dev:fix-style": [
"@php tools/php-cs-fixer fix --verbose",
"@php tools/phpcbf --colors -sp"
],
"dev:test": [
"@dev:check-style",
"@php vendor/bin/phpunit --testdox --verbose --stop-on-failure",
"@php tools/phpstan analyse --no-progress",
"@php tools/psalm --no-progress"
],
"dev:coverage": [
"@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --verbose --coverage-html build/coverage/html/"
],
"dev:infection": [
"@php tools/infection --initial-tests-php-options='-dzend_extension=xdebug.so -dxdebug.mode=coverage' --show-mutations --no-progress"
]
},
"scripts-descriptions": {
"dev:build": "DEV: run dev:fix-style dev:tests and dev:docs, run before pull request",
"dev:check-style": "DEV: search for code style errors using php-cs-fixer and phpcs",
"dev:fix-style": "DEV: fix code style errors using php-cs-fixer and phpcbf",
"dev:test": "DEV: run dev:fix-style, dev:check-style, phpunit, phpstan and psalm",
"dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/",
"dev:infection": "DEV: run mutation tests using infection (use PHP 7.4)"
}
}