forked from pantheon-deprecated/example-wordpress-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
159 lines (159 loc) · 5.62 KB
/
Copy pathcomposer.json
File metadata and controls
159 lines (159 loc) · 5.62 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "threespot/example-wordpress-composer",
"description": "Terminus build tools template for a Pantheon Composer WordPress application",
"type": "project",
"keywords": [],
"repositories": [
{
"type": "composer",
"url": "https://objectcache.pro/repo/"
},
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
},
{
"type": "composer",
"url": "https://connect.advancedcustomfields.com"
},
{
"type": "composer",
"url": "https://composer.admincolumns.com"
}
],
"require": {
"php": ">=8.3",
"admin-columns/admin-columns-pro": "^7.0.11",
"composer/installers": "^2.3.0",
"filp/whoops": "^2.14",
"johnbillion/extended-cpts": "^5.0.0",
"log1x/navi": "^3.0.2",
"oscarotero/env": "^2.1",
"pantheon-systems/pantheon-mu-plugin": "^1.5",
"pantheon-systems/quicksilver-pushback": "^2.0",
"rhubarbgroup/object-cache-pro": "^1.25.0",
"roots/acorn": "^6.0",
"roots/acorn-prettify": "^1.0.1",
"roots/bedrock-autoloader": "^1.0",
"roots/bedrock-disallow-indexing": "^2.0",
"roots/wordpress": "~6.9.4",
"roots/wp-config": "^1.0.0",
"vlucas/phpdotenv": "^5.4",
"wpackagist-plugin/admin-menu-editor": "^1.12.4",
"wpackagist-plugin/better-image-sizes": "^3.8.0",
"wpackagist-plugin/block-manager": "^3.0",
"wpackagist-plugin/disable-embeds": "^1.5",
"wpackagist-plugin/disable-emojis": "^1.7",
"wpackagist-plugin/duplicate-post": "^4.5.0",
"wpackagist-plugin/enable-media-replace": "^4.1.5",
"wpackagist-plugin/favicon-by-realfavicongenerator": "^1.3.32",
"wpackagist-plugin/filebird": "^6.3.2",
"wpackagist-plugin/pantheon-advanced-page-cache": "^2.0",
"wpackagist-plugin/pantheon-hud": "^0.4.3",
"wpackagist-plugin/post-type-switcher": "^4.0.0",
"wpackagist-plugin/query-monitor": "^3.16.4",
"wpackagist-plugin/redirection": "^5.5.0",
"wpackagist-plugin/resize-image-after-upload": "^1.8.6",
"wpackagist-plugin/safe-svg": "^2.2.5",
"wpackagist-plugin/simple-custom-post-order": "^2.5.7",
"wpackagist-plugin/term-management-tools": "^2.0.2",
"wpackagist-plugin/user-switching": "^1.11.0",
"wpackagist-plugin/wordpress-seo": "^27.0.0",
"wpackagist-plugin/wp-crontrol": "^1.18",
"wpackagist-plugin/wp-native-php-sessions": "^1.2",
"wpackagist-plugin/wp-security-audit-log": "^5.5.3",
"wpackagist-theme/twentytwentyfive": "^1.2",
"wpengine/advanced-custom-fields-pro": "~6.7.0"
},
"require-dev": {
"php-stubs/acf-pro-stubs": "^6.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"roave/security-advisories": "dev-latest",
"szepeviktor/phpstan-wordpress": "^2.0"
},
"config": {
"vendor-dir": "vendor",
"preferred-install": "dist",
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "8.3"
},
"allow-plugins": {
"composer/installers": true,
"johnpbloch/wordpress-core-installer": true,
"phpstan/extension-installer": true,
"roots/wordpress-core-installer": true
}
},
"extra": {
"wordpress-install-dir": "web/wp",
"build-env": {
"install-cms": [
"wp core install --title={site-name} --url={site-url} --admin_user={account-name} --admin_email={account-mail} --admin_password={account-pass}",
"wp option update permalink_structure '/%postname%/'"
]
},
"installer-paths": {
"web/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"web/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/wp-content/themes/{$name}/": ["type:wordpress-theme"],
"web/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"]
}
},
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"psr-4": { "PantheonSystems\\WordHatHelpers\\": "tests/behat/helper_classes/" }
},
"scripts": {
"build-assets": [
"@prepare-for-pantheon",
"composer install --ignore-platform-req=ext-redis --no-dev --no-ansi --no-interaction --optimize-autoloader --no-progress"
],
"prepare-for-pantheon": "WordPressProject\\composer\\ScriptHandler::prepareForPantheon",
"cleanup": [
"./scripts/composer/cleanup-composer"
],
"post-install-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-create-project-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"phpstan": [
"./vendor/bin/phpstan analyse --memory-limit=1G"
],
"unit-test": [
"./vendor/bin/phpunit tests/unit/*"
],
"lint": "find web/wp-content -name '*.php' -exec php -l {} \\;",
"deploy:test": "terminus env:deploy fixme-app-name.test && terminus env:clear-cache fixme-app-name.test",
"deploy:live": "terminus env:deploy fixme-app-name.live",
"deploy:all": "terminus env:deploy fixme-app-name.test && terminus env:clear-cache fixme-app-name.test && terminus env:deploy fixme-app-name.live && terminus env:clear-cache fixme-app-name.live",
"theme:dev": [
"Composer\\Config::disableProcessTimeout",
"cd web/wp-content/themes/sage && yarn start"
],
"theme:build": [
"Composer\\Config::disableProcessTimeout",
"cd web/wp-content/themes/sage && yarn build"
],
"replace-fixme": "php scripts/composer/ReplaceFixme.php",
"collect-logs": [
"./logs/collect-logs-rsync.sh"
]
}
}