forked from pantheon-systems/example-wordpress-composer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
107 lines (107 loc) · 3.64 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
{
"name": "threespot/example-wordpress-composer",
"description": "Terminus build tools template for a Pantheon Composer WordPress application",
"type": "project",
"keywords": [],
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "vcs",
"url": "https://github.com/pantheon-systems/wordpress-composer"
}
],
"require": {
"php": ">=8.1",
"composer/installers": "^1.12.0",
"pantheon-systems/quicksilver-pushback": "^2",
"pantheon-systems/wordpress-composer": "*",
"roots/wp-password-bcrypt": "^1.1.0",
"vlucas/phpdotenv": "^5.4",
"wpackagist-plugin/pantheon-advanced-page-cache": "^1.0",
"wpackagist-plugin/wp-native-php-sessions": "^1.2",
"wpackagist-theme/twentytwentyfour": "^1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.6.2",
"roave/security-advisories": "dev-latest"
},
"config": {
"vendor-dir": "vendor",
"preferred-install": "dist",
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "8.1"
},
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"johnpbloch/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 --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"
],
"code-sniff": [
"./vendor/bin/phpcs --standard=WordPress ./web/wp-content"
],
"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 dev"
],
"theme:build": [
"Composer\\Config::disableProcessTimeout",
"cd web/wp-content/themes/sage && yarn build"
],
"replace-fixme": "php scripts/composer/ReplaceFixme.php"
}
}