-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
122 lines (122 loc) · 4.01 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
{
"name": "ma-alps/ma-alps",
"type": "project",
"license": "proprietary",
"description": "",
"repositories": [
{
"type": "vcs",
"url": "git@github.com:ma-alps/spec.git"
}
],
"require": {
"php": "^8.1",
"ext-json": "*",
"ext-pdo": "*",
"ext-hash": "*",
"bear/app-meta": "^1.7",
"bear/dotenv": "^1.0",
"bear/package": "^1.10",
"bear/resource": "^1.15",
"bear/streamer": "^1.2",
"bear/sunday": "^1.5",
"jetbrains/phpstorm-attributes": "^1.0",
"koriym/app-state-diagram": "^0.8",
"koriym/http-constants": "^1.2",
"ma-alps/spec": "dev-master",
"ray/aop": "^2.10",
"ray/aura-sql-module": "^1.10",
"ray/di": "^2.11",
"ray/identity-value-module": "^1.0",
"ray/media-query": "^0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"bear/api-doc": "^1.0",
"bear/devtools": "^1.0.3",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"robmorgan/phinx": "^0.12.7"
},
"autoload": {
"psr-4": {
"MaAlps\\MaAlps\\": "src/"
},
"files": [
"function/json_decode.php",
"function/mkdir.php"
]
},
"autoload-dev": {
"psr-4": {
"MaAlps\\MaAlps\\": "tests/"
},
"files": ["tests/src/deleteFiles.php"]
},
"scripts": {
"post-install-cmd": "@composer bin all install --ansi",
"post-update-cmd": "@composer bin all install --ansi",
"setup": "php bin/setup.php",
"compile": "./vendor/bin/bear.compile 'MaAlps\\MaAlps' 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"
],
"baseline": [
"./vendor/bin/phpstan analyse -configuration -c phpstan.neon --generate-baseline --memory-limit=-1",
"./vendor/bin/psalm --set-baseline=psalm-baseline.xml"
],
"sa": [
"./vendor/bin/phpstan analyse -c phpstan.neon",
"psalm --show-info=true"
],
"tests": [
"@cs",
"@sa",
"@test"
],
"build": [
"@clean",
"@cs",
"@sa",
"@pcov",
"@compile",
"@metrics"
],
"serve": "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,
"process-timeout": 0,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}