-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomposer.json
More file actions
89 lines (88 loc) · 2.48 KB
/
composer.json
File metadata and controls
89 lines (88 loc) · 2.48 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
{
"name": "paul-iroyalpr/wordpress",
"type": "project",
"license": "MIT",
"description": "The fishbone for classic WordPress directory structure installation, but using Composer PHP. This is very convenient when you use WP Engine, which accepts only classic directory structure.",
"authors": [
{
"name": "Paul Burilichev",
"email": "paul.burilichev@gmail.com"
}
],
"keywords": [
"composer",
"wordpress",
"wp",
"wp-config",
"php"
],
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"php": ">=7.2",
"composer/installers": "^1.8",
"vlucas/phpdotenv": "^3.6.0",
"oscarotero/env": "^1.2.0",
"johnpbloch/wordpress-core": "5.3.2",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.0.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.5",
"roave/security-advisories": "dev-master",
"symfony/var-dumper": "5.*",
"wpackagist-plugin/query-monitor": "^3.5"
},
"config": {
"sort-packages": false,
"vendor-dir": "web/vendor/"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"web/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"web/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
}
},
"scripts": {
"pre-install-cmd": [
"@build-project-deps",
"@pre-clean"
],
"post-install-cmd": [
"@post-wp-clean",
"@post-wp-install"
],
"build-project-deps": [
"echo \"EXAMPLE cd ./web/wp-content/plugins/my-plugin && composer install --no-dev -o\""
],
"pre-clean": [
"cd web && rm -rf vendor wp-admin wp-includes xmlrpc.php index.php $(find . -name \"wp-*.php\" ! -name \"wp-config.php\")"
],
"post-wp-clean": [
"cd ./web/vendor/johnpbloch/wordpress-core/ && rm -rf composer.json license.txt readme.html",
"cd ./web/vendor/johnpbloch/wordpress-core/wp-content/plugins/ && rm -rf hello.php akismet",
"echo REMOVING WP-Plugins installed by the composer.",
"cd ./web/wp-content/plugins/ && rm -rf query-monitor",
"rm -rf ./web/vendor/johnpbloch/wordpress-core/wp-content/themes/twenty*"
],
"post-wp-install": [
"cp -Rf ./web/vendor/johnpbloch/wordpress-core/ ./web",
"rm -rf ./web/vendor/johnpbloch/wordpress-core"
],
"test": [
]
}
}