-
Notifications
You must be signed in to change notification settings - Fork 7
/
composer.json
68 lines (68 loc) · 2.13 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
{
"name": "phpcfdi/cfdi-cleaner",
"description": "Clean up Mexican CFDI",
"license": "MIT",
"keywords": [
"cfdi",
"sat",
"mexico"
],
"authors": [
{
"name": "Carlos C Soto",
"email": "[email protected]"
}
],
"homepage": "https://github.com/phpcfdi/cfdi-cleaner",
"require": {
"php": ">=7.3",
"ext-dom": "*",
"ext-libxml": "*",
"symfony/polyfill-php80": "^1.22"
},
"require-dev": {
"ext-json": "*",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
"PhpCfdi\\CfdiCleaner\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PhpCfdi\\CfdiCleaner\\Tests\\": "tests/"
}
},
"scripts": {
"dev:build": [
"@dev:fix-style",
"@dev:test"
],
"dev:check-style": [
"@php tools/composer-normalize normalize --dry-run",
"@php tools/php-cs-fixer fix --dry-run --verbose",
"@php tools/phpcs --colors -sp"
],
"dev:coverage": [
"@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html build/coverage/html/"
],
"dev:fix-style": [
"@php tools/composer-normalize normalize",
"@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 --verbose"
]
},
"scripts-descriptions": {
"dev:build": "DEV: run dev:fix-style and dev:tests, run before pull request",
"dev:check-style": "DEV: search for code style errors using composer-normalize, php-cs-fixer and phpcs",
"dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/",
"dev:fix-style": "DEV: fix code style errors using composer-normalize, php-cs-fixer and phpcbf",
"dev:test": "DEV: run dev:check-style, phpunit and phpstan"
}
}