-
Notifications
You must be signed in to change notification settings - Fork 17
/
composer.json
124 lines (124 loc) · 5.1 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
{
"name": "aoe/restler",
"type": "typo3-cms-extension",
"description": "A TYPO3-Extension, that integrates the popular PHP REST-framework Restler in TYPO3.",
"homepage": "https://extensions.typo3.org/extension/restler",
"support": {
"issues": "https://github.com/AOEpeople/TYPO3_Restler/issues"
},
"license": "GPL-3.0",
"authors": [
{
"name": "AOE GmbH",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1",
"ext-json": "*",
"ext-mbstring": "*",
"ext-iconv": "*",
"typo3/cms-core": "^12.4",
"luracast/restler": "^5.0",
"cweagans/composer-patches": "^1.7"
},
"require-dev": {
"typo3/testing-framework": "^8.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpcov": "^9.0.0",
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/phpstan": "^1.10",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "12.1.14",
"symplify/phpstan-rules": "^13.0"
},
"keywords": [
"TYPO3",
"Restler",
"REST",
"API"
],
"autoload": {
"psr-4": {
"Aoe\\Restler\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"Aoe\\Restler\\Tests\\": "Tests",
"TYPO3\\CMS\\Core\\Tests\\": ".Build/vendor/typo3/cms/typo3/sysext/core/Tests/"
}
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin",
"process-timeout": 0,
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true,
"cweagans/composer-patches": true
}
},
"scripts": {
"post-autoload-dump": [
"mkdir -p .Build/Web/typo3conf/ext/",
"[ -L .Build/Web/typo3conf/ext/restler ] || ln -snvf ../../../../. .Build/Web/typo3conf/ext/restler"
],
"test:unit": [
"[ -e .Build/bin/phpunit ] || composer update",
"XDEBUG_MODE=coverage TYPO3_PATH_ROOT=.Build/Web .Build/bin/phpunit -c Tests/phpunit.xml Tests/Unit"
],
"test:unit-filter": [
"[ -e .Build/bin/phpunit ] || composer update",
"XDEBUG_MODE=coverage TYPO3_PATH_ROOT=.Build/Web .Build/bin/phpunit -c Tests/phpunit.xml Tests/Unit --filter=ExceptionHandlerTest"
],
"code-style": [
"[ -e ./.Build/bin/rector ] || composer install",
"./.Build/bin/ecs check --config .code-quality/ecs.php",
"./.Build/bin/rector process --dry-run --config .code-quality/rector.php"
],
"code-analysis": [
"./.Build/bin/phpstan analyse -c .code-quality/phpstan.neon --memory-limit=1G"
],
"code-analysis--baseline": [
"./.Build/bin/phpstan analyse -c .code-quality/phpstan.neon --memory-limit=1G --generate-baseline --allow-empty-baseline"
],
"code-compatibility": [
"[ -e ./.Build/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/bin/phpcs ] || composer update",
"[ -d ./reports/php_checkstyle ] || mkdir -p reports/php_checkstyle/",
"./.code-quality/configure-checkstyle.sh",
"./.Build/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/bin/phpcs -d memory_limit=1G --standard=PHPCompatibility --colors --ignore=*/.Build/*,*.min.js -p . --runtime-set testVersion 8.1",
"./.Build/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/bin/phpcs -d memory_limit=1G --standard=PHPCompatibility --colors --ignore=*/.Build/*,*.min.js -p . --runtime-set testVersion 8.2",
"./.Build/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/bin/phpcs -d memory_limit=1G --standard=PHPCompatibility --colors --ignore=*/.Build/*,*.min.js -p . --runtime-set testVersion 8.3"
],
"code-check-pipeline": [
"@composer code-style",
"@composer code-analysis",
"@composer code-compatibility"
],
"extension-release": [
"@composer install --no-dev",
"rm -rf .github .Build code-quality Tests .gitignore scrutinizer.yml"
]
},
"scripts-descriptions": {
"test:unit": "Run unit-tests - example to run only SOME unit-tests: composer test:unit -- --filter DispatcherTest"
},
"extra": {
"branch-alias": {
"dev-main": "12.0.x-dev"
},
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": ".Build/Web",
"extension-key": "restler"
},
"enable-patching": true,
"patches": {
"luracast/restler": {
"BUGFIX Add url annotation for swagger": "https://raw.githubusercontent.com/AOEpeople/TYPO3_Restler/main/patches/0001-BUGFIX-Add-url-annotation-for-swagger-json.patch",
"FEATURE Group endpoints by resource path": "https://raw.githubusercontent.com/AOEpeople/TYPO3_Restler/main/patches/0002-FEATURE-Group-endpoints-by-resource-path.patch"
}
}
}
}