forked from solcloud/Counter-Strike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
68 lines (67 loc) · 2.5 KB
/
composer.json
File metadata and controls
68 lines (67 loc) · 2.5 KB
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
{
"scripts": {
"post-install-cmd": "@php -d memory_limit=300M cli/generateNavmesh.php",
"stan": "@php vendor/bin/phpstan --memory-limit=300M analyze",
"unit": "@php vendor/bin/phpunit -d memory_limit=200M",
"infection": "@php -d memory_limit=300M vendor/bin/infection --show-mutations --threads=max --min-covered-msi=100",
"dev": "php cli/server.php 1 8080 --debug & sleep 1 && php cli/udp-ws-bridge.php",
"dev2": "php cli/server.php 2 8080 --debug & sleep 1 && php cli/udp-ws-bridge.php & php cli/udp-ws-bridge.php 8082",
"dev2c": "php cli/server.php 2 8080 --debug & sleep 1 && php cli/udp-ws-bridge.php & php cli/client.php acode 8080",
"dev3c": "php cli/server.php 3 8080 --debug & sleep 1 && php cli/udp-ws-bridge.php & php cli/client.php acode 8080 & php cli/client.php acode 8080",
"coverage": [
"@putenv XDEBUG_MODE=coverage",
"@unit --coverage-text=www/coverage/coverage.txt --only-summary-for-coverage-text --coverage-html www/coverage --coverage-xml=www/coverage/coverage-xml --log-junit=www/coverage/junit.xml",
"cat www/coverage/coverage.txt",
"grep 'Lines:' www/coverage/coverage.txt | grep --quiet '100.00%'"
],
"infection-cache": [
"@putenv XDEBUG_MODE=off",
"@infection --coverage=www/coverage/ --only-covering-test-cases"
],
"check": [
"@putenv XDEBUG_MODE=off",
"@putenv PROJECT_CHECK=true",
"@composer dumpautoload --optimize --classmap-authoritative",
"@stan",
"@unit"
],
"check-full": [
"@check",
"@coverage",
"@infection-cache --skip-initial-tests"
]
},
"require": {
"php": ">=8.3",
"ext-sockets": "*",
"actived/graphphp": "0.2.2",
"clue/socket-raw": "1.6.0",
"psr/log": "3.0.0"
},
"autoload": {
"psr-4": {
"cs\\": "server/src/"
}
},
"require-dev": {
"textalk/websocket": "1.5.8",
"infection/infection": "*",
"phpstan/phpstan-phpunit": "*",
"phpunit/phpunit": "*"
},
"autoload-dev": {
"psr-4": {
"Test\\Simulation\\": "test/simulation/",
"Test\\": "test/og/"
}
},
"config": {
"platform": {
"php": "8.3"
},
"process-timeout": 0,
"allow-plugins": {
"infection/extension-installer": false
}
}
}