-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
30 lines (30 loc) · 1.13 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
{
"require-dev": {
"wp-cli/i18n-command": "^2.4",
"squizlabs/php_codesniffer": "^3.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"wp-coding-standards/wpcs": "^2.3"
},
"scripts": {
"post-install-cmd": ["composer run update-hooks"],
"post-update-cmd": ["composer run update-hooks"],
"build": ["composer run build-pot", "composer run build-docs"],
"build-pot": "wp i18n make-pot . languages/wp-backstage.pot",
"build-docs": "php ./phpdocumentor.phar -d \"./includes\" -t \"./docs/reference\"",
"clean": ["composer run clean-pot", "composer run clean-docs"],
"clean-pot": "rm \"./languages/wp-backstage.pot\"",
"clean-docs": "rm -rf \"./docs/reference\"",
"update-hooks": ["composer run remove-hooks", "composer run add-hooks"],
"add-hooks": "cp -v -f pre-commit .git/hooks/pre-commit",
"remove-hooks": "find .git/hooks/* ! -name *.sample -delete -print",
"lint": ["composer run lint-php"],
"lint-php": "./vendor/bin/phpcs",
"fix": ["composer run fix-php"],
"fix-php": "./vendor/bin/phpcbf"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}