-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
39 lines (39 loc) · 1.04 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
{
"autoload": {
"psr-4": {
"Refact\\": [
"src/"
]
},
"files": [
"src/functions.php"
]
},
"require": {
"php": ">=7.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"wp-coding-standards/wpcs": "^3.1.0",
"automattic/vipwpcs": "^3.0.0",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
"phpcsstandards/phpcsutils": "^1.0.11",
"phpcsstandards/phpcsextra": "^1.2.1",
"phpcompatibility/php-compatibility": "^9.3",
"wp-cli/i18n-command": "^2.2.5"
},
"scripts": {
"lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .",
"make-pot": "wp i18n make-pot . languages/_s.pot",
"post-install-cmd": [
"echo \"#!/bin/sh\ncomposer lint:php\ncomposer lint:wpcs\" > .git/hooks/pre-commit",
"chmod +x .git/hooks/pre-commit"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}