-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
134 lines (127 loc) · 6.5 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "dogma/dogma-debug",
"type": "library",
"description": "Powerful remote debugger/dumper",
"homepage": "https://github.com/paranoiq/dogma-debug",
"license": ["BSD-3-Clause"],
"authors": [
{
"name": "Vlasta Neubauer",
"homepage": "https://paranoiq.cz"
}
],
"require": {
"php": "^7.1|^8.0"
},
"require-dev": {
"dogma/dogma": "*",
"brick/date-time": "0.3.2",
"phpstan/phpstan": "1.10.6",
"phpstan/phpstan-strict-rules": "^1.0",
"nette/tester": "2.3.5",
"php-parallel-lint/php-console-highlighter": "~0.3",
"php-parallel-lint/php-parallel-lint": "~1.0",
"slevomat/coding-standard": "8.3.0",
"squizlabs/php_codesniffer": "^3.5.4",
"spell-checker/spell-checker": "^0.3.21",
"spell-checker/dictionary-en": "~0.1",
"brick/money": "0.5.3"
},
"suggest": {
"ext-sockets": "If you want to use socket connection (alternatives are log file or printing to stdout)",
"ext-mb": "Any of ext-mb|ext-intl|ext-iconv for unicode strings",
"ext-intl": "Any of ext-mb|ext-intl|ext-iconv for unicode strings",
"ext-iconv": "Any of ext-mb|ext-intl|ext-iconv for unicode strings"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"sllh/composer-versions-check": false
}
},
"scripts": {
"da": "composer dump-autoload",
"c": "@check:run",
"ca": "@check:all",
"t": "@tests:run",
"ta": "@tests:all",
"tc": "@tests:coverage",
"ps": "@phpstan:run",
"psa": "@phpstan:all",
"cs": "@phpcs:run",
"csf": "@phpcs:fix",
"sc": "@spell:run",
"check:run": [
"@lint:run",
"@tests:run",
"@phpstan:run",
"@phpcs:run",
"@spell:run"
],
"check:all": [
"@lint:all",
"@tests:all",
"@phpstan:all",
"@phpcs:run",
"@spell:run"
],
"lint:run": "php -v && php vendor/php-parallel-lint/php-parallel-lint/parallel-lint src client.php server.php",
"lint:all": [
"php83 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src8 client.php server.php",
"php82 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src8 client.php server.php",
"php81 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src8 client.php server.php",
"php80 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src8 client.php server.php",
"php74 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src7 client.php server.php",
"php73 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src7 client.php server.php",
"php72 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src7 client.php server.php",
"php71 vendor/php-parallel-lint/php-parallel-lint/parallel-lint src src7 client.php server.php"
],
"tests:run": "php vendor/nette/tester/src/tester tests/php71 -C --colors 1",
"tests:all": [
"php83 vendor/nette/tester/src/tester tests -C --colors 1",
"php82 vendor/nette/tester/src/tester tests -C --colors 1",
"php81 vendor/nette/tester/src/tester tests/php71 tests/php74 tests/php81 -C --colors 1",
"php80 vendor/nette/tester/src/tester tests/php71 tests/php74 -C --colors 1",
"php74 vendor/nette/tester/src/tester tests/php71 tests/php74 -C --colors 1",
"php73 vendor/nette/tester/src/tester tests/php71 -C --colors 1",
"php72 vendor/nette/tester/src/tester tests/php71 -C --colors 1",
"php71 vendor/nette/tester/src/tester tests/php71 -C --colors 1"
],
"tests:coverage": "php vendor/nette/tester/src/tester tests -c tests --colors 1 -p phpdbg --coverage tests/coverage.html --coverage-src src",
"phpstan:run": "php -v && php vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"phpstan:all": [
"php83 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php82 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php81 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php80 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php74 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php73 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M",
"php72 vendor/phpstan/phpstan/phpstan analyze -c build/PhpStan/phpstan.neon --memory-limit 256M"
],
"phpcs:run": [
"@phpcs:src",
"@phpcs:tests"
],
"phpcs:src": "php vendor/squizlabs/php_codesniffer/bin/phpcs --standard=build/CodeSniffer/phpcs-ruleset.xml -sp src client.php server.php",
"phpcs:tests": "php vendor/squizlabs/php_codesniffer/bin/phpcs --standard=build/CodeSniffer/phpcs-ruleset-tests.xml -sp tests",
"phpcs:fix": "php vendor/squizlabs/php_codesniffer/bin/phpcbf --standard=build/CodeSniffer/phpcs-ruleset-tests.xml -sp src client.php server.php tests",
"spell:run": "php vendor/spell-checker/spell-checker/spell-checker.php -c build/spell-checker/spell-checker.neon --checkDictionaryFiles --memoryLimit 1024M --noLogo"
},
"scripts-descriptions": {
"da": "Dump autoloader (shortcut)",
"check:run": "Run all checks (tests, phpstan, phpcs, phplint, spell-checker)",
"check:all": "Run all checks on all supported PHP versions (7.1 - 8.2)",
"tests:run": "Run tests",
"tests:all": "Run tests on all supported PHP versions (7.1 - 8.2)",
"tests:coverage": "Run tests with code coverage",
"phpstan:run": "Run PHPStan check",
"phpstan:all": "Run PHPStan check on all supported PHP versions (7.1 - 8.2)",
"phpcs:run": "Run CS check",
"phpcs:src": "Run CS check on /src",
"phpcs:tests": "Run CS check on /tests",
"phpcs:fix": "Run CS check with auto-fixing on /src and /tests",
"lint:run": "Run PHPLint",
"lint:all": "Run PHPLint on all supported PHP versions (7.1 - 8.2)",
"spell:run": "Run spell-checker"
}
}