-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcomposer.json
112 lines (99 loc) · 3.76 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "a8csp/project-scaffold",
"type": "wordpress-project",
"description": "The scaffold for new projects used by the Automattic Special Projects team.",
"homepage": "https://a8csp-project-scaffold-production.mystagingwebsite.com",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Contributors",
"homepage": "https://github.com/a8cteam51/team51-project-scaffold/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": ">=8.3",
"ext-json": "*"
},
"require-dev": {
"a8cteam51/team51-configs": "dev-trunk",
"wp-cli/i18n-command": "^2.6",
"wpackagist-plugin/woocommerce": "*",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"format:php": [
"@format:php:theme",
"@format:php:features"
],
"format:php:theme": "phpcbf --standard=./themes/a8csp-project-scaffold/.phpcs.xml --basepath=. ./themes/a8csp-project-scaffold -v",
"format:php:features": "phpcbf --standard=./mu-plugins/a8csp-project-scaffold-features/.phpcs.xml --basepath=. ./mu-plugins/a8csp-project-scaffold-features -v",
"lint:php": [
"@lint:php:theme",
"@lint:php:features"
],
"lint:php:theme": [
"@lint:php:theme:phpcs",
"@lint:php:theme:phpmd",
"@lint:php:theme:phpstan"
],
"lint:php:theme:phpcs": "phpcs --standard=./themes/a8csp-project-scaffold/.phpcs.xml --basepath=. ./themes/a8csp-project-scaffold -v",
"lint:php:theme:phpmd": "phpmd ./themes/a8csp-project-scaffold ansi ./themes/a8csp-project-scaffold/.phpmd.xml -v",
"lint:php:theme:phpstan": "phpstan analyse -c ./themes/a8csp-project-scaffold/.phpstan.neon -v --memory-limit=1G",
"lint:php:features": [
"@lint:php:features:phpcs",
"@lint:php:features:phpmd",
"@lint:php:features:phpstan"
],
"lint:php:features:phpcs": "phpcs --standard=./mu-plugins/a8csp-project-scaffold-features/.phpcs.xml --basepath=. ./mu-plugins/a8csp-project-scaffold-features -v",
"lint:php:features:phpmd": "phpmd ./mu-plugins/a8csp-project-scaffold-features ansi ./mu-plugins/a8csp-project-scaffold-features/.phpmd.xml -v",
"lint:php:features:phpstan": "phpstan analyse -c ./mu-plugins/a8csp-project-scaffold-features/.phpstan.neon -v --memory-limit=1G",
"internationalize": [
"@makepot:theme",
"@updatepo:theme",
"@makepot:features",
"@updatepo:features"
],
"makepot:theme": "wp i18n make-pot themes/a8csp-project-scaffold",
"updatepo:theme": "wp i18n update-po themes/a8csp-project-scaffold/languages/a8csp-project-scaffold.pot",
"makemo:theme": "wp i18n make-mo themes/a8csp-project-scaffold/languages",
"makepot:features": "wp i18n make-pot mu-plugins/a8csp-project-scaffold-features",
"updatepo:features": "wp i18n update-po mu-plugins/a8csp-project-scaffold-features/languages/a8csp-project-scaffold-features.pot",
"makemo:features": "wp i18n make-mo mu-plugins/a8csp-project-scaffold-features/languages",
"packages-install": "@composer install --ignore-platform-reqs --no-interaction",
"packages-update": [
"@composer clear-cache",
"@composer update --prefer-stable --ignore-platform-reqs --no-interaction"
]
},
"config": {
"allow-plugins": {
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [
"type:wordpress-plugin"
],
"themes/{$name}/": [
"type:wordpress-theme"
]
}
}
}