-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathcomposer.json
51 lines (51 loc) · 1.44 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
{
"name": "automattic/newspack-theme",
"description": "A theme for Newspack. https://newspack.com/",
"homepage": "https://newspack.com/",
"type": "package",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/Automattic/newspack-theme/issues"
},
"require-dev": {
"composer/installers": "~2.0",
"automattic/vipwpcs": "^2.0",
"wp-coding-standards/wpcs": "^2.1",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"brainmaestro/composer-git-hooks": "^3.0",
"wptrt/wpthemereview": "*",
"szepeviktor/phpstan-wordpress": "^1.1"
},
"scripts": {
"phpcs-i": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs -i",
"lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf",
"post-install-cmd": [
"vendor/bin/cghooks add --no-lock",
"PHPStan\\WordPress\\Composer\\FixWpStubs::php73Polyfill"
],
"post-update-cmd": [
"vendor/bin/cghooks update",
"PHPStan\\WordPress\\Composer\\FixWpStubs::php73Polyfill"
]
},
"extra": {
"hooks": {
"pre-commit": "./node_modules/.bin/lint-staged",
"pre-push": "./.hooks/pre-push",
"commit-msg": [
"cat $1 | ./node_modules/.bin/newspack-scripts commitlint"
]
}
},
"config": {
"platform": {
"php": "8.0"
},
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}