-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
255 lines (238 loc) · 10.7 KB
/
Copy pathcomposer.json
File metadata and controls
255 lines (238 loc) · 10.7 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
"name": "ahegyes/wordpress-framework",
"description": "DWS WordPress Framework — monorepo development root. Aggregates bootstrap, shared, core, infrastructure, and woocommerce packages for local dev and cross-package testing.",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://github.com/ahegyes/wordpress-framework",
"authors": [
{
"name": "Contributors",
"homepage": "https://github.com/ahegyes/wordpress-framework/graphs/contributors"
}
],
"require": {
"php": ">=8.5",
"ahegyes/wp-framework-bootstrap": "^2.0@dev",
"ahegyes/wp-framework-core": "^2.0@dev",
"ahegyes/wp-framework-infrastructure": "^2.0@dev",
"ahegyes/wp-framework-shared": "^2.0@dev",
"ahegyes/wp-framework-woocommerce": "^2.0@dev"
},
"require-dev": {
"ahegyes/wordpress-configs": "dev-trunk",
"automattic/jetpack-changelogger": "^6.0",
"deptrac/deptrac": "^4.6",
"infection/infection": "^0.32",
"johnpbloch/wordpress-core": "^7.0",
"maglnet/composer-require-checker": "^4.20",
"php-stubs/woocommerce-stubs": "^10.9",
"php-stubs/wordpress-stubs": "7.0.0 as 6.9999.0",
"phpunit/phpunit": "^13",
"wp-plugin/woocommerce": "^10.9"
},
"repositories": [
{
"type": "path",
"url": "packages/bootstrap",
"options": { "symlink": true }
},
{
"type": "path",
"url": "packages/core",
"options": { "symlink": true }
},
{
"type": "path",
"url": "packages/infrastructure",
"options": { "symlink": true }
},
{
"type": "path",
"url": "packages/shared",
"options": { "symlink": true }
},
{
"type": "path",
"url": "packages/woocommerce",
"options": { "symlink": true }
},
{
"type": "vcs",
"url": "https://github.com/ahegyes/wordpress-configs"
},
{
"type": "composer",
"url": "https://repo.wp-packages.org",
"only": ["wp-plugin/*", "wp-theme/*"]
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload-dev": {
"psr-4": {
"DeepWebSolutions\\Framework\\Bootstrap\\Tests\\": "packages/bootstrap/tests/",
"DeepWebSolutions\\Framework\\Core\\Tests\\": "packages/core/tests/",
"DeepWebSolutions\\Framework\\Settings\\Tests\\": "packages/infrastructure/tests/Settings/",
"DeepWebSolutions\\Framework\\Shared\\Tests\\": "packages/shared/tests/",
"DeepWebSolutions\\Framework\\Storage\\Tests\\": "packages/infrastructure/tests/Storage/",
"DeepWebSolutions\\Framework\\Utilities\\Tests\\": "packages/infrastructure/tests/Utilities/",
"DeepWebSolutions\\Framework\\WooCommerce\\Tests\\": "packages/woocommerce/tests/"
}
},
"scripts": {
"generate-autoloader": "@composer dump-autoload -o",
"packages-install": "@composer install --ignore-platform-req=php+ --no-interaction",
"packages-update": [
"@composer clear-cache",
"@composer update --prefer-stable --ignore-platform-req=php+ --no-interaction"
],
"format:php": "phpcbf --standard=./phpcs.dist.xml --basepath=. ./ -v",
"lint:php": [
"@lint:php:phpcs",
"@lint:php:phpstan",
"@lint:php:deptrac",
"@lint:php:composer-require-checker"
],
"lint:php:phpcs": "phpcs --standard=./phpcs.dist.xml --basepath=. ./ -v",
"lint:php:phpstan": [
"phpstan analyse -c packages/bootstrap/phpstan.neon --memory-limit=1G",
"phpstan analyse -c packages/shared/phpstan.neon --memory-limit=1G",
"phpstan analyse -c packages/infrastructure/phpstan.storage.neon --memory-limit=1G",
"phpstan analyse -c packages/core/phpstan.neon --memory-limit=1G",
"phpstan analyse -c packages/infrastructure/phpstan.utilities.neon --memory-limit=1G",
"phpstan analyse -c packages/infrastructure/phpstan.settings.neon --memory-limit=1G",
"phpstan analyse -c packages/woocommerce/phpstan.neon --memory-limit=1G"
],
"lint:php:deptrac": "deptrac analyse --no-interaction --cache-file=tests/.cache/deptrac",
"lint:php:composer-require-checker": "@php bin/composer-require-check.php",
"test:wp-env:ensure": "node_modules/.bin/wp-env --config .wp-env.tests.json run cli true >/dev/null 2>&1 || npm --prefix=. run wp-env:start",
"test": [
"@test:unit",
"@test:integration"
],
"test:unit": "@php vendor/bin/phpunit --testsuite=Unit",
"test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit --testsuite=Integration"
],
"test:unit:mutation": "@php vendor/bin/infection --threads=max --show-mutations=0",
"test:integration:mutation": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli php -r 'exit((extension_loaded(\"pcov\") || str_contains((string) ini_get(\"xdebug.mode\"), \"coverage\")) ? 0 : 1);' || { echo 'The wp-env cli container has no code coverage driver; start wp-env with --xdebug=coverage or install pcov in the container.'; exit 1; }",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework php -d memory_limit=-1 vendor/bin/infection --configuration=infection.integration.json --threads=max --show-mutations=0"
],
"test:all": [
"@test:unit",
"@test:integration",
"@test:unit:mutation",
"@test:integration:mutation"
],
"quality-check": [
"@lint:php",
"@test"
],
"quality-check:all": [
"@lint:php",
"@test:all"
],
"packages:bootstrap:test": [
"@packages:bootstrap:test:unit",
"@packages:bootstrap:test:integration"
],
"packages:bootstrap:test:unit": "@php vendor/bin/phpunit packages/bootstrap/tests/Unit",
"packages:bootstrap:test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit packages/bootstrap/tests/Integration"
],
"packages:bootstrap:changelog:add": "cd packages/bootstrap && ../../vendor/bin/changelogger add",
"packages:bootstrap:changelog:validate": "cd packages/bootstrap && ../../vendor/bin/changelogger validate",
"packages:bootstrap:changelog:write": "cd packages/bootstrap && ../../vendor/bin/changelogger write",
"packages:core:test": [
"@packages:core:test:unit",
"@packages:core:test:integration"
],
"packages:core:test:unit": "@php vendor/bin/phpunit packages/core/tests/Unit",
"packages:core:test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit packages/core/tests/Integration"
],
"packages:core:changelog:add": "cd packages/core && ../../vendor/bin/changelogger add",
"packages:core:changelog:validate": "cd packages/core && ../../vendor/bin/changelogger validate",
"packages:core:changelog:write": "cd packages/core && ../../vendor/bin/changelogger write",
"packages:infrastructure:test": [
"@packages:infrastructure:test:unit",
"@packages:infrastructure:test:integration"
],
"packages:infrastructure:test:unit": "@php vendor/bin/phpunit packages/infrastructure/tests/Storage/Unit packages/infrastructure/tests/Settings/Unit packages/infrastructure/tests/Utilities/Unit",
"packages:infrastructure:test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit packages/infrastructure/tests/Storage/Integration packages/infrastructure/tests/Settings/Integration packages/infrastructure/tests/Utilities/Integration"
],
"packages:infrastructure:changelog:add": "cd packages/infrastructure && ../../vendor/bin/changelogger add",
"packages:infrastructure:changelog:validate": "cd packages/infrastructure && ../../vendor/bin/changelogger validate",
"packages:infrastructure:changelog:write": "cd packages/infrastructure && ../../vendor/bin/changelogger write",
"packages:shared:test": [
"@packages:shared:test:unit",
"@packages:shared:test:integration"
],
"packages:shared:test:unit": "@php vendor/bin/phpunit packages/shared/tests/Unit",
"packages:shared:test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit packages/shared/tests/Integration"
],
"packages:shared:changelog:add": "cd packages/shared && ../../vendor/bin/changelogger add",
"packages:shared:changelog:validate": "cd packages/shared && ../../vendor/bin/changelogger validate",
"packages:shared:changelog:write": "cd packages/shared && ../../vendor/bin/changelogger write",
"packages:woocommerce:test": [
"@packages:woocommerce:test:unit",
"@packages:woocommerce:test:integration"
],
"packages:woocommerce:test:unit": "@php vendor/bin/phpunit packages/woocommerce/tests/Unit",
"packages:woocommerce:test:integration": [
"@putenv CI=1",
"@test:wp-env:ensure",
"node_modules/.bin/wp-env --config .wp-env.tests.json run cli --env-cwd=wp-content/mu-plugins/wp-framework vendor/bin/phpunit packages/woocommerce/tests/Integration"
],
"packages:woocommerce:changelog:add": "cd packages/woocommerce && ../../vendor/bin/changelogger add",
"packages:woocommerce:changelog:validate": "cd packages/woocommerce && ../../vendor/bin/changelogger validate",
"packages:woocommerce:changelog:write": "cd packages/woocommerce && ../../vendor/bin/changelogger write",
"packages:changelog:validate": [
"@packages:bootstrap:changelog:validate",
"@packages:core:changelog:validate",
"@packages:infrastructure:changelog:validate",
"@packages:shared:changelog:validate",
"@packages:woocommerce:changelog:validate"
],
"packages:changelog:write": [
"@packages:bootstrap:changelog:write",
"@packages:core:changelog:write",
"@packages:infrastructure:changelog:write",
"@packages:shared:changelog:write",
"@packages:woocommerce:changelog:write"
],
"changelog:validate": "@packages:changelog:validate"
},
"extra": {
"installer-paths": {
"vendor/{$vendor}/{$name}/": [
"type:wordpress-plugin",
"type:wordpress-theme"
]
}
},
"config": {
"allow-plugins": {
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"infection/extension-installer": true,
"phpstan/extension-installer": true
},
"sort-packages": true
}
}