forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
161 lines (161 loc) · 5.28 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"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": "[email protected]",
"homepage": "https://basedonline.nl"
},
{
"name": "Lukas Gächter",
"email": "[email protected]",
"homepage": "https://www.mind.ch"
},
{
"name": "Nicolas Lemoine",
"email": "[email protected]",
"homepage": "https://n5s.dev"
},
{
"name": "Jared Novack",
"email": "[email protected]",
"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.1",
"twig/twig": "^3.5"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.28",
"php-parallel-lint/php-parallel-lint": "^1.3",
"php-stubs/acf-pro-stubs": "^6.0",
"php-stubs/wp-cli-stubs": "^2.0",
"phpro/grumphp": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.7",
"phpunit/phpunit": "^9.0",
"rector/rector": "^1.0",
"squizlabs/php_codesniffer": "^3.0",
"symplify/easy-coding-standard": "^12.2",
"szepeviktor/phpstan-wordpress": "^1.1",
"twig/cache-extra": "^3.3",
"wpackagist-plugin/advanced-custom-fields": "^6.0",
"wpackagist-plugin/co-authors-plus": "^3.6",
"yoast/wp-test-utils": "^1.2"
},
"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\\": "tests/phpstan"
},
"classmap": [
"tests/"
],
"exclude-from-classmap": [
"tests/php",
"tests/phpstan"
]
},
"config": {
"allow-plugins": {
"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": [
"@test:integration:acf",
"@test:integration:coauthors-plus",
"@test:integration:wpml",
"@test:integration"
],
"test:integration": "phpunit --no-coverage --exclude-group acf,coauthors-plus,wpml",
"test:integration:acf": "phpunit --no-coverage --group acf",
"test:integration:coauthors-plus": "phpunit --no-coverage --group coauthors-plus",
"test:integration:codecov": "phpunit --coverage-clover ./build/logs/clover.xml",
"test:integration:wpml": "phpunit --no-coverage --group wpml",
"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"
},
"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 all integration tests with PHPUnit",
"test:integration": "Run unit tests for Timber core",
"test:integration:acf": "Run unit tests related to the ACF integration for Timber",
"test:integration:coauthors-plus": "Run unit tests related to the Co-Authors Plus integration for Timber",
"test:integration:codecov": "Run unit tests for Timber with code coverage",
"test:integration:wpml": "Run unit tests related to the WPML integration for Timber",
"test:make-pot": "Generate .pot files if translatable strings have changed that are used in the translation unit test."
}
}