forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
199 lines (199 loc) · 7.21 KB
/
composer.json
File metadata and controls
199 lines (199 loc) · 7.21 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
{
"name": "timber/timber",
"description": "Create WordPress themes with beautiful OOP code and the Twig Template Engine",
"license": "MIT",
"type": "library",
"keywords": [
"timber",
"twig",
"themes",
"templating",
"wordpress"
],
"authors": [
{
"name": "Erik van der Bas",
"email": "erik@basedonline.nl",
"homepage": "https://basedonline.nl"
},
{
"name": "Lukas Gächter",
"email": "lukas.gaechter@mind.ch",
"homepage": "https://www.mind.ch"
},
{
"name": "Nicolas Lemoine",
"email": "nico@n5s.dev",
"homepage": "https://n5s.dev"
},
{
"name": "Jared Novack",
"email": "jared@upstatement.com",
"homepage": "https://upstatement.com"
},
{
"name": "Timber Community",
"homepage": "https://github.com/timber/timber"
}
],
"homepage": "https://timber.upstatement.com",
"support": {
"issues": "https://github.com/timber/timber/issues",
"source": "https://github.com/timber/timber",
"docs": "https://timber.github.io/docs/"
},
"require": {
"php": "^8.2",
"twig/twig": "^3.19"
},
"require-dev": {
"composer/installers": "^2",
"ergebnis/composer-normalize": "^2.28",
"ergebnis/phpunit-slow-test-detector": "^2.20",
"mantle-framework/cache": "^1.15",
"mantle-framework/config": "^1.15",
"mantle-framework/container": "^1.15",
"mantle-framework/contracts": "^1.15",
"mantle-framework/database": "^1.15",
"mantle-framework/events": "^1.15",
"mantle-framework/faker": "^1.15",
"mantle-framework/filesystem": "^1.15",
"mantle-framework/framework-views": "^1.15",
"mantle-framework/http": "^1.15",
"mantle-framework/http-client": "^1.15",
"mantle-framework/support": "^1.15",
"mantle-framework/testing": "^1.15",
"mantle-framework/testkit": "^1.15",
"mantle-framework/view": "^1.15",
"php-parallel-lint/php-parallel-lint": "^1.3",
"php-stubs/wp-cli-stubs": "^2.0",
"phpro/grumphp": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^11.5 || ^12",
"rector/rector": "^2.0",
"squizlabs/php_codesniffer": "^3.0",
"symplify/easy-coding-standard": "^13",
"szepeviktor/phpstan-wordpress": "^2",
"twig/cache-extra": "^3.17",
"wpackagist-plugin/advanced-custom-fields": "^6.5",
"wpackagist-plugin/co-authors-plus": "^3.6"
},
"suggest": {
"php-coveralls/php-coveralls": "^2.0 for code coverage",
"twig/cache-extra": "For using the cache tag in Twig"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"autoload": {
"psr-4": {
"Timber\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"TimberPHPStan\\": "phpstan/",
"Timber\\Tests\\": "tests/"
},
"exclude-from-classmap": [
"phpstan/"
]
},
"config": {
"allow-plugins": {
"alleyinteractive/composer-wordpress-autoloader": true,
"composer/installers": true,
"ergebnis/composer-normalize": true,
"phpro/grumphp": true,
"phpstan/extension-installer": true
},
"sort-packages": true
},
"scripts": {
"analyze": "phpstan analyse --memory-limit=1G",
"cs": "ecs check",
"cs:docs": "ecs check-markdown docs/v2/**/*.md --fix",
"cs:docs:fix": "ecs check-markdown docs/v2/**/*.md",
"cs:fix": "ecs check --fix",
"grump": "grumphp run",
"grump:install": "grumphp git:init",
"lint": "parallel-lint --exclude .git --exclude vendor .",
"lint-composer": "@composer normalize --dry-run",
"lint-composer:fix": "@composer normalize",
"qa": [
"@lint-composer",
"@lint",
"@test",
"@cs"
],
"rector": "rector process --dry-run",
"rector:fix": "rector process",
"test": "phpunit --testsuite default",
"test:acf": "TIMBER_TEST_PLUGINS=acf phpunit --testsuite acf",
"test:all": [
"@test",
"@test:multisite",
"@test:acf",
"@test:coauthors",
"@test:wpml",
"@test:isolated"
],
"test:coauthors": "TIMBER_TEST_PLUGINS=coauthors-plus phpunit --testsuite coauthors",
"test:coverage": [
"@test:coverage:default",
"@test:coverage:multisite",
"@test:coverage:acf",
"@test:coverage:coauthors",
"@test:coverage:wpml",
"@test:coverage:isolated",
"@test:coverage:merge"
],
"test:coverage:acf": "TIMBER_TEST_PLUGINS=acf phpunit --testsuite acf --coverage-php build/coverage-acf.php",
"test:coverage:coauthors": "TIMBER_TEST_PLUGINS=coauthors-plus phpunit --testsuite coauthors --coverage-php build/coverage-coauthors.php",
"test:coverage:default": "phpunit --testsuite default --coverage-php build/coverage-default.php",
"test:coverage:image": "phpunit --testsuite image --coverage-php build/coverage-image.php",
"test:coverage:isolated": "phpunit --testsuite isolated --coverage-php build/coverage-isolated.php",
"test:coverage:merge": "phpcov merge build --clover build/logs/clover.xml",
"test:coverage:multisite": "WP_MULTISITE=1 phpunit --testsuite multisite --coverage-php build/coverage-multisite.php",
"test:coverage:wpml": "TIMBER_TEST_PLUGINS=wpml phpunit --testsuite wpml --coverage-php build/coverage-wpml.php",
"test:image": "phpunit --testsuite image",
"test:isolated": "phpunit --testsuite isolated",
"test:make-pot": "wp i18n make-pot src tests/languages/timber.pot --domain= && wp i18n make-pot ./tests/assets/translations ./tests/languages/timber-test.pot --domain=timber-test",
"test:multisite": "WP_MULTISITE=1 phpunit --testsuite multisite",
"test:wpml": "TIMBER_TEST_PLUGINS=wpml phpunit --testsuite wpml"
},
"scripts-descriptions": {
"analyze": "Run PHPStan code analysis",
"cs": "Check code style with EasyCodingStandard",
"cs:docs": "Check markdown files in the docs directory with EasyCodingStandard",
"cs:docs:fix": "Fix markdown files in the docs directory with EasyCodingStandard",
"cs:fix": "Fix code style with EasyCodingStandard",
"grump": "Run GrumPHP checks",
"grump:install": "Install GrumPHP configuration",
"lint": "Run PHP Parallel Lint",
"lint-composer": "Check composer.json for incorrect order and whitespace",
"lint-composer:fix": "Fix composer.json for incorrect order and whitespace",
"qa": "Run all quality assurance checks/tests",
"rector": "Check Rector rules without applying them",
"rector:fix": "Fix Rector rules",
"test": "Run default testsuite (core tests, no plugins/multisite)",
"test:acf": "Run ACF integration tests",
"test:all": "Run all testsuites sequentially",
"test:coauthors": "Run Co-Authors Plus integration tests",
"test:coverage": "Run all testsuites with coverage and merge results",
"test:coverage:merge": "Merge coverage files from all testsuites",
"test:image": "Run image tests (for testing with different image editors)",
"test:isolated": "Run isolated tests (must run last, sets constants)",
"test:make-pot": "Generate .pot files for translation unit tests",
"test:multisite": "Run multisite-specific tests (requires WP_MULTISITE=1)",
"test:wpml": "Run WPML integration tests"
}
}