-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcomposer.json
65 lines (65 loc) · 1.57 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
{
"name": "wpscholar/wp-skeleton",
"description": "Setup a new WordPress installation via Composer.",
"license": "GPL-2.0-or-later",
"type": "project",
"keywords": [
"WordPress",
"skeleton",
"CMS",
"blog",
"composer",
"wpackagist"
],
"authors": [
{
"name": "Micah Wood",
"email": "[email protected]",
"homepage": "http://wpscholar.com",
"role": "Developer"
}
],
"support": {
"source": "https://github.com/wpscholar/wp-skeleton",
"issues": "https://github.com/wpscholar/wp-skeleton/issues"
},
"repositories": {
"wpackagist": {
"type": "composer",
"url": "https://wpackagist.org"
}
},
"require": {
"johnpbloch/wordpress": "@stable",
"composer/installers": "^1.8",
"wpscholar/phpdotenv": "^1.0"
},
"suggest": {
"wp-cli/wp-cli": "@stable"
},
"extra": {
"wordpress-install-dir": "wp",
"installer-paths": {
"content/mu-plugins/{$name}": [
"type:wordpress-muplugin"
],
"content/plugins/{$name}": [
"type:wordpress-plugin"
],
"content/themes/{$name}": [
"type:wordpress-theme"
]
}
},
"scripts": {
"generate-salts": [
"php -r \"file_put_contents('salt.php', '<?php ' . PHP_EOL);\"",
"php -r \"file_put_contents('salt.php', file_get_contents('https://api.wordpress.org/secret-key/1.1/salt/'), FILE_APPEND);\""
],
"post-create-project-cmd": [
"composer run generate-salts",
"php -r \"copy('.env.example', '.env');\"",
"php -r \"unlink('.env.example');\""
]
}
}