-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblueprint.json
More file actions
56 lines (56 loc) · 2.07 KB
/
Copy pathblueprint.json
File metadata and controls
56 lines (56 loc) · 2.07 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
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Flight Log",
"description": "A private flight log and statistics app for WordPress.",
"author": "Alex Kirk",
"categories": [
"Apps",
"Travel"
]
},
"landingPage": "/flight-log/",
"login": true,
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "git:directory",
"url": "https://github.com/akirk/flight-log",
"ref": "main",
"refType": "branch"
},
"options": {
"activate": false,
"targetFolderName": "flight-log"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "git:directory",
"url": "https://github.com/akirk/wp-app",
"ref": "main",
"refType": "branch",
"path": "src"
},
"options": {
"activate": false,
"targetFolderName": "flight-log/vendor/akirk/wp-app"
}
},
{
"step": "mkdir",
"path": "wordpress/wp-content/plugins/flight-log/vendor"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/plugins/flight-log/vendor/autoload.php",
"data": "<?php\nrequire_once __DIR__ . '/akirk/wp-app/functions.php';\nspl_autoload_register( static function ( $class ) {\n\t$map = [\n\t\t'WpApp\\\\BaseApp' => 'abstract-baseapp.php',\n\t\t'WpApp\\\\BaseStorage' => 'BaseStorage.php',\n\t\t'WpApp\\\\Masterbar' => 'class-masterbar.php',\n\t\t'WpApp\\\\Openstation' => 'class-openstation.php',\n\t\t'WpApp\\\\Pwa' => 'class-pwa.php',\n\t\t'WpApp\\\\Registry' => 'class-registry.php',\n\t\t'WpApp\\\\Router' => 'class-router.php',\n\t\t'WpApp\\\\Settings' => 'class-settings.php',\n\t\t'WpApp\\\\WpApp' => 'class-wpapp.php',\n\t\t'WpApp\\\\Rest\\\\Access' => 'rest/class-access.php',\n\t\t'WpApp\\\\Rest\\\\Private_Posts_Controller' => 'rest/class-private-posts-controller.php',\n\t\t'WpApp\\\\Rest\\\\Private_Terms_Controller' => 'rest/class-private-terms-controller.php',\n\t];\n\tif ( isset( $map[ $class ] ) ) {\n\t\trequire_once __DIR__ . '/akirk/wp-app/' . $map[ $class ];\n\t}\n} );\n"
},
{
"step": "activatePlugin",
"pluginPath": "flight-log/flight-log.php"
}
]
}