Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Aug 15, 2024
1 parent 6262777 commit 3393625
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 30 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
- [New developer.gatherpress.org · Issue #1 · carstingaxion/gatherpress-devhub](https://github.com/carstingaxion/gatherpress-devhub/issues/1)
- [WordPress devhub blueprint · Issue #44 · WordPress/blueprints](https://github.com/WordPress/blueprints/issues/44)

[<kbd> <br> Edit <code>blueprint.json</code> <br> </kbd>](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/carstingaxion/gatherpress-devhub/main/blueprint.json)
[<kbd> <br> Edit <code>blueprint.json</code> <br> </kbd>](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/carstingaxion/gatherpress-devhub/main/blueprint.json)

---

## Learnings

1. Needs to run php 7.4
2.
85 changes: 56 additions & 29 deletions blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,65 @@
"username": "admin",
"password": "password"
},
{
"step": "writeFile",
"path": "/wordpress/assets.zip",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/carstingaxion/gatherpress-devhub/main/zips/playground-assets.zip",
"caption": "Downloading CI/CD prepared assets."
},
"progress": {
"weight": 2,
"caption": "Applying CI/CD prepared assets."
}
},
{
"step": "unzip",
"zipFile": {
"resource": "vfs",
"path": "/wordpress/assets.zip"
},
"extractToPath": "/wordpress"
{
"step": "writeFile",
"path": "/wordpress/wporg-mu-plugins.zip",
"data": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=WordPress/wporg-mu-plugins&branch=build&directory=mu-plugins",
"caption": "Downloading wporg-mu-plugins."
},
{
"step": "wp-cli",
"command": "wp plugin activate phpdoc-parser"
"progress": {
"weight": 2,
"caption": "Applying wporg-mu-plugins."
}
},
{
"step": "unzip",
"zipFile": {
"resource": "vfs",
"path": "/wordpress/wporg-mu-plugins.zip"
},
{
"step": "wp-cli",
"command": "wp parser create '/wordpress/wp-content/plugins/gatherpress' --user=1"
"extractToPath": "/wordpress/wp-content/mu-plugins"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/loader.php",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/carstingaxion/gatherpress-devhub/WIP/use-build-deps/wp-content/mu-plugins/loader.php"
}
},
{
"step": "installTheme",
"themeZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=wporg-parent-2021&branch=build"
}
},
{
"step": "installTheme",
"themeZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=WordPress/wporg-developer&branch=build"
},
"options": {
"activate": true
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=WordPress/phpdoc-parser&branch=master"
},
{
"step": "wp-cli",
"command": "wp theme activate wporg-developer-2023"
"options": {
"activate": true
}
},
{
"step": "wp-cli",
"command": "wp parser create '/wordpress/wp-content/plugins/gatherpress' --user=1"
}
]
}
Expand Down
62 changes: 62 additions & 0 deletions wp-content/mu-plugins/loader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/**
* COPY OF & REPLACEMENT FOR
* https://github.com/WordPress/wporg-mu-plugins/blob/trunk/mu-plugins/loader.php
*/

namespace WordPressdotorg\MU_Plugins;

use WordPressdotorg\Autoload;

/**
* Load mu-plugins.
*
* `utilities/` aren't loaded automatically since they're not used globally.
*/

// Load and register the Autoloader.
if ( ! class_exists( '\WordPressdotorg\Autoload\Autoloader', false ) ) {
require_once __DIR__ . '/autoloader/class-autoloader.php';
}

Autoload\register_class_path( __NAMESPACE__, __DIR__ );

// Composer loader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
// Production.
require_once __DIR__ . '/vendor/autoload.php';
} elseif ( file_exists( dirname( __DIR__ ) . '/vendor/autoload.php' ) ) {
// Development.
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
}

require_once __DIR__ . '/helpers/helpers.php';
require_once __DIR__ . '/blocks/favorite-button/index.php';
require_once __DIR__ . '/blocks/global-header-footer/blocks.php';
require_once __DIR__ . '/blocks/google-map/index.php';
require_once __DIR__ . '/blocks/handbook-meta-link/block.php';
require_once __DIR__ . '/blocks/horizontal-slider/horizontal-slider.php';
require_once __DIR__ . '/blocks/language-suggest/language-suggest.php';
require_once __DIR__ . '/blocks/local-navigation-bar/index.php';
// require_once __DIR__ . '/blocks/latest-news/latest-news.php';
require_once __DIR__ . '/blocks/link-wrapper/index.php';
require_once __DIR__ . '/blocks/navigation/index.php';
require_once __DIR__ . '/blocks/notice/index.php';
require_once __DIR__ . '/blocks/query-filter/index.php';
require_once __DIR__ . '/blocks/query-has-results/index.php';
require_once __DIR__ . '/blocks/query-total/index.php';
require_once __DIR__ . '/blocks/ratings-bars/index.php';
require_once __DIR__ . '/blocks/ratings-stars/index.php';
require_once __DIR__ . '/blocks/sidebar-container/index.php';
require_once __DIR__ . '/blocks/screenshot-preview/block.php';
require_once __DIR__ . '/blocks/screenshot-preview-block/block.php';
require_once __DIR__ . '/blocks/site-breadcrumbs/index.php';
require_once __DIR__ . '/blocks/table-of-contents/index.php';
require_once __DIR__ . '/blocks/time/index.php';
require_once __DIR__ . '/global-fonts/index.php';
require_once __DIR__ . '/plugin-tweaks/index.php';
require_once __DIR__ . '/rest-api/index.php';
require_once __DIR__ . '/skip-to/skip-to.php';
// require_once __DIR__ . '/db-user-sessions/index.php';
// require_once __DIR__ . '/encryption/index.php';
// require_once __DIR__ . '/admin/index.php';

0 comments on commit 3393625

Please sign in to comment.