-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
144 lines (144 loc) · 4.88 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "dmk/mkoptin",
"description": "MK Optin Extension",
"type": "typo3-cms-extension",
"keywords": [
"TYPO3 CMS",
"optin"
],
"homepage": "http://www.dmk-ebusiness.de/",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Michael Wagner",
"email": "[email protected]",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"DMK\\Optin\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"DMK\\Optin\\Tests\\": "Tests/Unit"
}
},
"require": {
"php": "^7.4",
"typo3/cms-core": "^10.4",
"typo3/cms-backend": "^10.4",
"typo3/cms-extbase": "^10.4",
"typo3/cms-fluid": "^10.4"
},
"require-dev": {
"captainhook/captainhook": "^5.10",
"php-parallel-lint/php-parallel-lint": "^1.3",
"helmich/typo3-typoscript-lint": "^2.5",
"sebastian/phpcpd": "^5.0",
"friendsofphp/php-cs-fixer": "^3.3",
"phpcompatibility/php-compatibility": "^9.3.5",
"phpmd/phpmd": "^2.11",
"phpstan/phpstan": "^1.2",
"phpstan/extension-installer": "^1.1",
"saschaegerer/phpstan-typo3": "^1.0",
"nimut/testing-framework": "^5.0"
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin",
"preferred-install": {
"typo3/cms": "source"
},
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true,
"phpstan/extension-installer": true
}
},
"extra": {
"branch-alias": {
"dev-10.4": "10.4.x-dev"
},
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"extension-key": "mkoptin",
"web-dir": ".Build/Web",
"app-dir": ".Build"
}
},
"scripts": {
"post-autoload-dump": [
"[ -e .Build/bin/captainhook ] && .Build/bin/captainhook install -f -s || echo 'CaptainHook missing, skip install.'",
"mkdir -p .Build/Web/typo3conf/ext/",
"[ -L .Build/Web/typo3conf/ext/mkoptin ] || ln -snvf ../../../../. .Build/Web/typo3conf/ext/mkoptin",
"[ -f .Build/Web/typo3conf/LocalConfiguration.php ] || cp Tests/Fixtures/LocalConfiguration.php .Build/Web/typo3conf/LocalConfiguration.php"
],
"runqs": [
"@fix",
"@lint",
"@test"
],
"lint:php": [
"[ -e .Build/bin/parallel-lint ] || composer update",
".Build/bin/parallel-lint --exclude .Build ./"
],
"lint:yaml": [
"[ -e .Build/bin/yaml-lint ] || composer update",
".Build/bin/yaml-lint --ansi -n -v ./Configuration"
],
"lint:yamldocker": [
"[ -x \"$(command -v docker)\" ] && docker run --rm -v \"$PWD:/yaml\" sdesbure/yamllint yamllint -f colored -c .yamllint ./Configuration"
],
"lint:typoscript": [
"[ -e .Build/bin/typoscript-lint ] || composer update",
".Build/bin/typoscript-lint --ansi -v --fail-on-warnings"
],
"lint": [
"@lint:php",
"@lint:yaml",
"@lint:typoscript"
],
"test:phpcs": [
"[ -e .Build/bin/php-cs-fixer ] || composer update",
".Build/bin/php-cs-fixer fix -v --dry-run --diff"
],
"test:phpcompatibility": [
"[ -e .Build/bin/phpcs ] || composer update",
".Build/bin/phpcs --ignore=.Build/* -p . --standard=.Build/vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4"
],
"test:phpmd": [
"[ -e .Build/bin/phpmd ] || composer update",
".Build/bin/phpmd ./Classes text phpmd.xml",
".Build/bin/phpmd ./Tests text phpmd.xml"
],
"test:phpstan": [
"[ -e .Build/bin/phpstan ] || composer update",
".Build/bin/phpstan analyse -c phpstan.neon --memory-limit=512M"
],
"test:phpcpd": [
"[ -e .Build/bin/phpcpd ] || composer update",
"(test \"$(php -v | grep \"Xdebug v3\" | wc -l)\" = 0 && bin/phpcpd ./Classes) | true"
],
"test:phpunit": [
"[ -e .Build/bin/phpunit ] || composer update",
".Build/bin/phpunit --coverage-text --coverage-clover=.Build/coverage.xml -c phpunit.xml --whitelist=./Classes"
],
"test": [
"@test:phpcs",
"@test:phpcompatibility",
"@test:phpmd",
"@test:phpstan",
"@test:phpcpd",
"@test:phpunit"
],
"fix:phpcs": [
"[ -e .Build/bin/php-cs-fixer ] || composer update",
".Build/bin/php-cs-fixer fix -v"
],
"fix": [
"@fix:phpcs"
]
}
}