-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
117 lines (107 loc) · 3.91 KB
/
Copy pathcomposer.json
File metadata and controls
117 lines (107 loc) · 3.91 KB
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
113
114
115
116
117
{
"name": "a8csp/project-template",
"type": "project",
"description": "A template repository for A8C Special Projects full-site builds.",
"homepage": "https://github.com/a8cteam51/a8csp-project-template",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "A8C Special Projects",
"homepage": "https://specialprojects.automattic.com/"
},
{
"name": "Contributors",
"homepage": "https://github.com/a8cteam51/a8csp-project-template/graphs/contributors"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/a8cteam51/a8csp-configs"
},
{
"type": "composer",
"url": "https://repo.wp-packages.org"
}
],
"require": {
"php": ">=8.5",
"ext-json": "*"
},
"require-dev": {
"a8csp/configs": "dev-trunk",
"phpcompatibility/phpcompatibility-wp": "^3@alpha",
"phpcompatibility/php-compatibility": "^10@alpha",
"phpcompatibility/phpcompatibility-paragonie": "^2@alpha",
"phpunit/phpunit": "^13",
"wp-cli/i18n-command": "^2",
"composer/installers": "^2",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"packages-install": "@composer install --ignore-platform-req=php+ --no-interaction",
"packages-update": [
"@composer clear-cache",
"@composer update --prefer-stable --ignore-platform-req=php+ --no-interaction"
],
"format:php": [
"phpcbf --standard=./themes/a8csp-project-template/.phpcs.xml --basepath=. ./themes/a8csp-project-template -v",
"phpcbf --standard=./mu-plugins/a8csp-project-template-features/.phpcs.xml --basepath=. ./mu-plugins -v"
],
"lint:php": [
"@lint:php:phpcs",
"@lint:php:phpcs:tests",
"@lint:php:phpstan"
],
"lint:php:phpcs": [
"phpcs --standard=./themes/a8csp-project-template/.phpcs.xml --basepath=. ./themes/a8csp-project-template -v",
"phpcs --standard=./mu-plugins/a8csp-project-template-features/.phpcs.xml --basepath=. ./mu-plugins -v"
],
"lint:php:phpcs:tests": "phpcs --standard=./.phpcs.tests.xml --basepath=. ./tests -v",
"lint:php:phpstan": [
"test -n \"$(find ./themes/a8csp-project-template ./mu-plugins -name '*.php' -print -quit)\" || (echo '::error::phpstan configured paths (themes/a8csp-project-template, mu-plugins) contain zero PHP files' >&2; exit 1)",
"phpstan analyse -c ./.phpstan.neon -v --memory-limit=1G"
],
"internationalize": [
"@i18n:makepot",
"@i18n:updatepo",
"@i18n:makemo",
"@i18n:makephp"
],
"i18n:makepot": [
"wp i18n make-pot ./themes/a8csp-project-template ./themes/a8csp-project-template/languages/a8csp-project-template.pot --slug=a8csp-project-template",
"wp i18n make-pot ./mu-plugins/a8csp-project-template-features ./mu-plugins/a8csp-project-template-features/languages/a8csp-project-template-features.pot --slug=a8csp-project-template-features"
],
"i18n:updatepo": [
"wp i18n update-po ./themes/a8csp-project-template/languages/a8csp-project-template.pot",
"wp i18n update-po ./mu-plugins/a8csp-project-template-features/languages/a8csp-project-template-features.pot"
],
"i18n:makemo": [
"wp i18n make-mo ./themes/a8csp-project-template/languages/",
"wp i18n make-mo ./mu-plugins/a8csp-project-template-features/languages/"
],
"i18n:makephp": [
"wp i18n make-php ./themes/a8csp-project-template/languages/",
"wp i18n make-php ./mu-plugins/a8csp-project-template-features/languages/"
],
"test:integration": "npm --prefix=. run test:integration"
},
"config": {
"allow-plugins": {
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"platform-check": false
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [
"type:wordpress-plugin"
],
"themes/{$name}/": [
"type:wordpress-theme"
]
}
}
}