-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
147 lines (147 loc) · 4.79 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
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
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with Composer, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "[email protected]",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "[email protected]",
"homepage": "https://github.com/retlehs"
},
{
"name": "Andy Yolk (@digitalandyeu)",
"email": "[email protected]",
"homepage": "https://github.com/andriilive"
}
],
"keywords": [
"bedrock",
"composer",
"roots",
"wordpress",
"wp",
"wp-config"
],
"support": {
"issues": "https://github.com/roots/bedrock/issues",
"forum": "https://discourse.roots.io/category/bedrock"
},
"repositories": [
{
"type": "composer",
"url": "https://pivvenit.github.io/acf-composer-bridge/composer/v3/wordpress-muplugin/"
},
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"require": {
"php": ">=7.4",
"composer/installers": "^2.2",
"vlucas/phpdotenv": "^5.5",
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "^1.0",
"roots/bedrock-disallow-indexing": "^2.0",
"roots/wordpress": "6.1.1",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.1.0",
"lukasbesch/bedrock-plugin-disabler": "^1.3",
"andriilive/wp-disable-generated-image-sizes": "dev-main",
"wpackagist-plugin/acf-to-rest-api": "^3.3",
"wpackagist-plugin/jetpack": "^11.7",
"advanced-custom-fields/advanced-custom-fields-pro": "^6.0",
"wpackagist-plugin/acf-extended": "^0.8.9",
"ext-pdo": "*",
"ext-sqlite3": "*",
"ext-json": "*",
"wpackagist-plugin/svg-support": "^2.5",
"wpackagist-plugin/wordpress-importer": "^0.8.0",
"vlucas/valitron": "^1.4",
"roots/soil": "^4.1"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"wp-cli/wp-cli": "^2.7"
},
"suggest": {
"wpackagist-plugin/faustwp": "*",
"wpackagist-plugin/redirection": "*"
},
"autoload": {
"psr-4": {
"Theme\\": "web/app/themes/theme/App"
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true,
"pivvenit/acf-pro-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"web/app/plugins/{$name}/": [
"type:wordpress-plugin"
],
"web/app/themes/{$name}/": [
"type:wordpress-theme"
]
},
"wordpress-install-dir": "web/wp"
},
"scripts": {
"wp-new:users": [
"source ./.env && [ -f $SECRETS_FOLDER/wp_users.csv ] && wp user import-csv $SECRETS_FOLDER/wp_users.csv"
],
"db:import": "wp db import .export/db.sql",
"db:export": "wp db export .export/db.sql --add-drop-table",
"db:dump-prod": "wp db export .export/db_prod_\"`date +\"%Y-%m-%d__%H%\":\"%M\":\"%S\"`\".sql --add-drop-table",
"backup:zip": "zip -r .export/bckp_prod_\"`date +\"%Y-%m-%d__%H%\":\"%M\":\"%S\"`\".zip ./ -x ./vendor/\\* ./.git/\\* ./.export/\\* ./web/wp/\\* ./.idea/\\* .DS_Store ./web/app/languages/\\* ./web/app/upgrade/\\* ./web/app/plugins/\\* ./web/app/mu-plugins/\\* ./.github/\\* -v .DS_Store",
"db:dump-safe": "wp db export .export/db_safe_export_\"`date +\"%Y-%m-%d__%H%\":\"%M\":\"%S\"`\".sql --exclude_tables=wp_users,wp_options,wp_comments",
"post-root-package-install": [
". .utils/install.sh"
],
"users:show": "source ./.env && [ -f $SECRETS_FOLDER/wp_users.csv ] && cat $SECRETS_FOLDER/wp_users.csv",
"before-deploy": [
"composer run-script db:export",
"composer run-script backup:zip"
],
"post-deploy": [
"composer run-script db:import",
"composer run-script db:dump-prod",
"composer run-script wp-new:users",
"wp search-replace 'https://wp.digitalandy.devs' 'https://wp.digitalandy.eu' --skip-columns=guid",
"wp search-replace 'http://wp.digitalandy.devs' 'https://wp.digitalandy.eu' --skip-columns=guid",
"wp language core install cs_CZ uk en_GB",
"wp language plugin install --all cs_CZ uk en_GB",
"wp language theme install --all cs_CZ uk en_GB",
"wp media regenerate --yes --only-missing --skip-delete",
"wp db optimize",
"wp cache flush",
"wp rewrite flush",
"wp transient delete --all"
],
"root-root": "wp user update root --user_pass=root --skip-email",
"login": "wp login as root"
}
}