-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcomposer.json
69 lines (69 loc) · 1.96 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
{
"name": "handpressed/wp-multitenancy-boilerplate",
"type": "project",
"description": "WordPress multitenancy boilerplate configured and managed with Composer and PHP dotenv.",
"keywords": [
"WordPress",
"multitenancy"
],
"license": "MIT",
"authors": [
{
"name": "Nicholas at HandPressed",
"email": "[email protected]",
"homepage": "https://handpressed.net",
"role": "Developer"
}
],
"require": {
"php": ">=8.1",
"composer/installers": "@stable",
"johnpbloch/wordpress": "@stable",
"oscarotero/env": "^1.1.0",
"roots/wp-password-bcrypt": "1.0.0",
"vlucas/phpdotenv": "^2.4"
},
"suggest": {
"wp-cli/wp-cli": "@stable"
},
"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"
},
"repositories": {
"wpackagist": {
"type": "composer",
"url": "https://wpackagist.org/"
}
},
"scripts": {
"post-create-project-cmd": [
"composer run generate-salts",
"php -r \"rename('.env.example', '.env');\"",
"php -r \"rename('web/wp-config.php', 'web/wp/wp-config.php');\"",
"php -r \"rename('web/wp', '/var/opt/wp');\"",
"php -r \"symlink('/var/opt/wp', 'web/wp');\"",
"php -r \"symlink('/var/opt/wp/wp-content/themes', 'web/app/themes');\"",
"php -r \"symlink('/var/opt/wp/wp-content/plugins', 'web/app/plugins');\"",
"php -r \"rename('web/app/mu-plugins', '/var/opt/wp/wp-content/mu-plugins');\"",
"php -r \"symlink('/var/opt/wp/wp-content/mu-plugins', 'web/app/mu-plugins');\""
],
"generate-salts": [
"echo '<?php' > conf/wp-salts.php && curl -L https://api.wordpress.org/secret-key/1.1/salt/ >> conf/wp-salts.php"
]
},
"support": {
"issues": "https://github.com/handpressed/wp-multitenancy-boilerplate/issues",
"source": "https://github.com/handpressed/wp-multitenancy-boilerplate"
}
}