|
1 | 1 | {
|
2 |
| - "$schema": "https://playground.wordpress.net/blueprint-schema.json", |
3 |
| - "meta": { |
4 |
| - "title": "The Amnesty Humanity WordPress thme Playground", |
5 |
| - "description": "A demo enviroment for our Humanity theme", |
6 |
| - "author": "Humanity", |
7 |
| - "categories": [ |
8 |
| - "theme", |
9 |
| - "demo" |
10 |
| - ] |
| 2 | + "$schema": "https://playground.wordpress.net/blueprint-schema.json", |
| 3 | + "meta": { |
| 4 | + "title": "The Amnesty Humanity WordPress thme Playground", |
| 5 | + "description": "A demo enviroment for our Humanity theme", |
| 6 | + "author": "Humanity", |
| 7 | + "categories": [ |
| 8 | + "theme", |
| 9 | + "demo" |
| 10 | + ] |
| 11 | + }, |
| 12 | + "landingPage": "/wp-admin/post.php?post=2&action=edit", |
| 13 | + "preferredVersions": { |
| 14 | + "php": "8.2", |
| 15 | + "wp": "6.4" |
| 16 | + }, |
| 17 | + "features": { |
| 18 | + "networking": true |
| 19 | + }, |
| 20 | + "phpExtensionBundles": [ |
| 21 | + "kitchen-sink" |
| 22 | + ], |
| 23 | + "siteOptions": { |
| 24 | + "blogname": "Humanity Theme", |
| 25 | + "blogdescription": "Free and open source WordPRess theme for humanity", |
| 26 | + "show_on_front": "page", |
| 27 | + "page_on_front": "2" |
| 28 | + }, |
| 29 | + "login": true, |
| 30 | + "steps": [ |
| 31 | + { |
| 32 | + "step": "login", |
| 33 | + "username": "admin", |
| 34 | + "password": "password" |
11 | 35 | },
|
12 |
| - "landingPage": "/wp-admin/", |
13 |
| - "preferredVersions": { |
14 |
| - "php": "8.2", |
15 |
| - "wp": "6.4" |
| 36 | + { |
| 37 | + "step": "enableMultisite" |
16 | 38 | },
|
17 |
| - "features": { |
18 |
| - "networking": true |
| 39 | + { |
| 40 | + "step": "mkdir", |
| 41 | + "path": "/tmp/humanity-theme" |
19 | 42 | },
|
20 |
| - "phpExtensionBundles": [ |
21 |
| - "kitchen-sink" |
22 |
| - ], |
23 |
| - "siteOptions": { |
24 |
| - "blogname": "Humanity Theme", |
25 |
| - "blogdescription": "Free and open source WordPRess theme for humanity" |
| 43 | + { |
| 44 | + "step": "unzip", |
| 45 | + "extractToPath": "/tmp/humanity-theme", |
| 46 | + "zipFile": { |
| 47 | + "resource": "url", |
| 48 | + "url": "https://github-proxy.com/proxy/?repo=amnestywebsite/humanity-theme&release=v1.1.1&asset=humanity-theme.zip" |
| 49 | + } |
26 | 50 | },
|
27 |
| - "login": true, |
28 |
| - "steps": [ |
29 |
| - { |
30 |
| - "step": "login", |
31 |
| - "username": "admin", |
32 |
| - "password": "password" |
33 |
| - }, |
34 |
| - { |
35 |
| - "step": "enableMultisite" |
36 |
| - }, |
37 |
| - { |
38 |
| - "step": "mkdir", |
39 |
| - "path": "/tmp/humanity-theme" |
40 |
| - }, |
41 |
| - { |
42 |
| - "step": "unzip", |
43 |
| - "extractToPath": "/tmp/humanity-theme", |
44 |
| - "zipFile": { |
45 |
| - "resource": "url", |
46 |
| - "url": "https://github-proxy.com/proxy/?repo=amnestywebsite/humanity-theme&release=v1.1.1&asset=humanity-theme.zip" |
47 |
| - } |
48 |
| - }, |
49 |
| - { |
50 |
| - "step": "mv", |
51 |
| - "fromPath": "/tmp/humanity-theme", |
52 |
| - "toPath": "/wordpress/wp-content/themes/humanity-theme" |
53 |
| - }, |
54 |
| - { |
55 |
| - "step": "activateTheme", |
56 |
| - "themeFolderName": "humanity-theme" |
57 |
| - }, |
58 |
| - { |
59 |
| - "step": "installPlugin", |
60 |
| - "pluginZipFile": { |
61 |
| - "resource": "wordpress.org/plugins", |
62 |
| - "slug": "cmb2" |
63 |
| - } |
64 |
| - }, |
65 |
| - { |
66 |
| - "step": "updateUserMeta", |
67 |
| - "meta": { |
68 |
| - "admin_color": "sunrise" |
69 |
| - }, |
70 |
| - "userId": 1 |
71 |
| - }, |
72 |
| - { |
73 |
| - "step": "wp-cli", |
74 |
| - "command": "wp post generate --count=12 --post_type=post --post_date=1999-01-04" |
75 |
| - }, |
76 |
| - { |
77 |
| - "step": "wp-cli", |
78 |
| - "command": "wp theme enable humanity-theme --network" |
79 |
| - } |
80 |
| - ] |
| 51 | + { |
| 52 | + "step": "mv", |
| 53 | + "fromPath": "/tmp/humanity-theme", |
| 54 | + "toPath": "/wordpress/wp-content/themes/humanity-theme" |
| 55 | + }, |
| 56 | + { |
| 57 | + "step": "wp-cli", |
| 58 | + "command": "wp theme activate --network humanity-theme" |
| 59 | + }, |
| 60 | + { |
| 61 | + "step": "installPlugin", |
| 62 | + "pluginZipFile": { |
| 63 | + "resource": "wordpress.org/plugins", |
| 64 | + "slug": "cmb2" |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "step": "updateUserMeta", |
| 69 | + "meta": { |
| 70 | + "admin_color": "sunrise" |
| 71 | + }, |
| 72 | + "userId": 1 |
| 73 | + }, |
| 74 | + { |
| 75 | + "step": "wp-cli", |
| 76 | + "command": "wp post generate --count=12 --post_type=post --post_date=1999-01-04" |
| 77 | + }, |
| 78 | + { |
| 79 | + "step": "wp-cli", |
| 80 | + "command": "wp post update 2 --post_title='Humanity Theme Playground Demo' https://raw.githubusercontent.com/amnestywebsite/humanity-blueprint/main/sample-content.html" |
| 81 | + }, |
| 82 | + { |
| 83 | + "step": "wp-cli", |
| 84 | + "command": "wp media import https://raw.githubusercontent.com/amnestywebsite/humanity-blueprint/main/jan-kronies-Ao1MeLnG_kY-unsplash.jpg --post_id=2 --featured_image" |
| 85 | + } |
| 86 | + ] |
81 | 87 | }
|
0 commit comments