-
Notifications
You must be signed in to change notification settings - Fork 3
/
composer.json
97 lines (86 loc) · 2.41 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
{
"name": "a8cteam51/open-source-initiative",
"type": "wordpress-project",
"description": "THe Open Source Initiative project WordPress site.",
"homepage": "https://opensource.org",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Contributors",
"homepage": "https://github.com/a8cteam51/open-source-initiative/graphs/contributors"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/a8cteam51/team51-configs"
},
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"require": {
"php": ">=7.4",
"ext-json": "*"
},
"require-dev": {
"a8cteam51/team51-configs": "dev-trunk",
"wp-cli/i18n-command": "^2.4",
"squizlabs/php_codesniffer": "3.*",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "dev-develop",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"format:php": [
"@format:php:theme",
"@format:php:plugins",
"@format:php:mu-plugins"
],
"format:php:theme": "phpcbf --standard=./phpcs.xml --basepath=. ./themes/osi -v",
"format:php:plugins": "phpcbf --standard=./phpcs.xml --basepath=. ./plugins -v",
"format:php:mu-plugins": "phpcbf --standard=./phpcs.xml --basepath=. ./mu-plugins -v",
"lint:php": [
"@lint:php:theme",
"@lint:php:plugins",
"@lint:php:mu-plugins"
],
"lint:php:theme": "phpcs --standard=./phpcs.xml --basepath=. ./themes/osi -v",
"lint:php:plugins": "phpcs --standard=./phpcs.xml --basepath=. ./plugins -v",
"lint:php:mu-plugins": "phpcs --standard=./phpcs.xml --basepath=. ./mu-plugins -v",
"internationalize": [
"@makepot:theme",
"@updatepo:theme"
],
"makepot:theme": "wp i18n make-pot themes/osi",
"updatepo:theme": "wp i18n update-po themes/osi/languages/osi.pot",
"makemo:theme": "wp i18n make-mo themes/osi/languages",
"packages-install": "@composer install --ignore-platform-reqs --no-interaction",
"packages-update": [
"@composer clear-cache",
"@composer update --prefer-stable --no-interaction"
]
},
"config": {
"allow-plugins": {
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [
"type:wordpress-plugin"
],
"themes/{$name}/": [
"type:wordpress-theme"
]
}
}
}