forked from LauraHilliger/planet4-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
executable file
·80 lines (67 loc) · 2.48 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
{
"name": "greenpeace/planet4-base",
"version": "0.2.0",
"repositories": [
{
"type": "composer",
"url": "https://p4-composer-registry.greenpeace.org/"
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"composer/installers": "~1.0",
"wp-cli/wp-cli": "^1.1",
"greenpeace/planet4-wordpress": "4.8",
"greenpeace/planet4-master-theme" : "0.2.*",
"greenpeace/planet4-child-theme" : "0.2.*",
"greenpeace/planet4-content-default": "0.2.*",
"greenpeace/planet4-plugin-engagingnetworks" : "0.*",
"greenpeace/planet4-plugin-action-content-type" : "0.1.*"
},
"config": {
"secure-http": false
},
"extra": {
"installer-paths": {
"vendor/plugins/{$name}/": ["type:wordpress-plugin"],
"vendor/themes/{$name}/": ["type:wordpress-theme"]
}
},
"scripts": {
"site-install": [
"@reset:public", "@copy:wordpress",
"@reset:themes", "@reset:plugins", "@copy:themes", "@copy:assets", "@copy:plugins",
"@core:config", "@core:install", "@plugin:activate", "@theme:activate",
"@core:initial-content", "@core:add-super-admin-user"
],
"site-update": [
"@copy:wordpress",
"@reset:themes", "@reset:plugins", "@copy:themes", "@copy:assets", "@copy:plugins",
"@core:updatedb", "@plugin:deactivate", "@plugin:activate", "@theme:activate"
],
"site-dev": [
"@core:add-super-admin-user"
],
"theme:install": ["@copy:theme", "@theme:activate"],
"plugin:install": ["@copy:plugin", "@plugin:activate"],
"reset:public" : "rm -rf public; mkdir public",
"reset:themes" : "rm -rf public/wp-content/themes",
"reset:plugins" : "rm -rf public/wp-content/plugins",
"copy:wordpress": "rsync --recursive vendor/greenpeace/planet4-wordpress-upstream/* public",
"copy:plugins" : "cp -rf vendor/plugins public/wp-content",
"copy:themes" : "cp -rf vendor/themes public/wp-content",
"copy:assets" : "cp -rf vendor/greenpeace/planet4-content-default/assets public/wp-content/themes/planet4-master-theme",
"core:config": "wp core config --force",
"core:install": "wp core install",
"core:updatedb": "wp core update-db",
"core:initial-content": "composer run-script content-default -d vendor/greenpeace/planet4-content-default ",
"core:add-super-admin-user": "wp user create dev p4-dev@greenpeace.org --role=administrator --user_pass=u3vsREsvjwo",
"plugin:deactivate": "wp plugin deactivate --all",
"plugin:activate": "wp plugin activate --all",
"theme:activate": "wp theme activate",
"server": "php -S 127.0.0.1:9191 -t public"
}
}