-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
106 lines (106 loc) · 3.4 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
{
"name": "my-vendor/ticket",
"type": "project",
"license": "proprietary",
"description": "",
"require": {
"php": "^8.2.0",
"bear/dotenv": "^1.0",
"bear/package": "^1.14",
"bear/resource": "^1.17",
"bear/sunday": "^1.6",
"koriym/query-locator": "^1.5",
"ray/aop": "^2.12",
"ray/di": "^2.14",
"ray/identity-value-module": "^1.0",
"ray/media-query": "^0.12",
"robmorgan/phinx": "^0.11.7"
},
"require-dev": {
"bear/api-doc": "^1.1",
"bear/devtools": "^1.0",
"bamarni/composer-bin-plugin": "^1.4",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
"MyVendor\\Ticket\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"MyVendor\\Ticket\\": "tests/"
}
},
"scripts": {
"post-install-cmd": [
"@setup",
"@composer bin all install --ansi"
],
"setup": "php bin/setup.php",
"compile": "./vendor/bin/bear.compile 'MyVendor\\Ticket' prod-app ./",
"doc": "./vendor/bin/apidoc",
"test": "./vendor/bin/phpunit",
"coverage": "php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage",
"pcov": "php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml",
"cs": "./vendor/bin/phpcs",
"cs-fix": "./vendor/bin/phpcbf src tests",
"metrics": "./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception src",
"clean": [
"./vendor/bin/phpstan clear-result-cache",
"./vendor/bin/psalm --clear-cache",
"rm -rf ./var/tmp/*.php"
],
"sa": [
"./vendor/bin/psalm --show-info=true",
"./vendor/bin/phpstan analyse -c phpstan.neon",
"./vendor/bin/phpmd src text ./phpmd.xml"
],
"tests": [
"@cs",
"@sa",
"@test"
],
"build": [
"@clean",
"@cs",
"@sa",
"@pcov",
"@compile",
"@metrics"
],
"serve": "COMPOSER_PROCESS_TIMEOUT=0 php -dzend_extension=xdebug.so -S 127.0.0.1:8080 -t public",
"app": "php bin/app.php",
"page": "php bin/page.php"
},
"scripts-descriptions": {
"setup": "Setup the project",
"compile": "Compile scripts for the production",
"doc": "Generate API document",
"test": "Run unit tests",
"tests": "Run tests and quality checks",
"coverage": "Generate test coverage report",
"pcov": "Generate test coverage report (pcov)",
"cs": "Checks the coding standard",
"cs-fix": "Fix the coding standard",
"sa": "Run static analysis",
"metrics": "Build metrics report",
"clean": "Clear cache files",
"serve": "Start built-in server",
"app": "Request app resource",
"page": "Request page resource"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": false
}
}
}