-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
34 lines (34 loc) · 1.07 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
{
"require": {
"openai-php/client": "^0.4.1",
"symfony/http-client": "^6.2",
"nyholm/psr7": "^1.5"
},
"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"],
"build-pot": "wp i18n make-pot . languages/wpgpt.pot",
"clean": ["composer run clean-pot"],
"clean-pot": "rm \"./languages/wpgpt.pot\"",
"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,
"php-http/discovery": true
}
}
}