-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
49 lines (49 loc) · 1.19 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
{
"config": {
"github-protocols": [
"https"
],
"optimize-autoloader": true,
"allow-plugins": true,
"sort-packages": true
},
"prefer-stable": true,
"require": {
"php": "^8.1",
"ext-curl": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-simplexml": "*"
},
"require-dev": {
"qossmic/deptrac-shim": "^1.0",
"rector/rector": "^1.0"
},
"scripts": {
"gen": [
"@minimal",
"@build"
],
"build": "export current_hash=\"$(git log HEAD -n 1 --pretty=format:\"%H\")\" && { mkdir -p ./build && cd ./src [ ! -f \"$(dirname $PWD)/build/$(basename $(dirname $PWD))_${current_hash}.zip\" ] && zip -9 -r $(dirname $PWD)/build/$(basename $(dirname $PWD))_${current_hash}.zip . && cd .. ; }",
"docs": [
"@putenv NO_COLOR=1",
"tools/phpdoc"
],
"deptrac": [
"@putenv NO_COLOR=1",
"vendor/bin/deptrac --report-uncovered"
],
"refactor-try": [
"vendor/bin/rector --dry-run --config=rector.php --no-ansi"
],
"refactor-apply": [
"vendor/bin/rector --config=rector.php --no-ansi"
],
"minimal": [
"@refactor-apply",
"@deptrac",
"@docs"
]
}
}