Skip to content

Commit

Permalink
Add development files
Browse files Browse the repository at this point in the history
  • Loading branch information
widoz committed Oct 27, 2023
1 parent 412237d commit a7ecbe3
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .development/mu-plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* Plugin Name: Gutenberg Versions Manager Mu Plugin
* Description: A Mu Plugin to test the functionality of the Gutenberg Versions Manager.
* Author: Inpsyde
* Version: 1.0.0.0
*/

declare(strict_types=1);

namespace Inpsyde\GutenbergVersionManager;

$autoloader = WP_CONTENT_DIR . '/mu-plugins/gutenberg-versions-manager/vendor/autoload.php';

if (\file_exists($autoloader)) {
require_once $autoloader;
}
if (!\class_exists('Inpsyde\\App\\App')) {
return;
}

$app = \Inpsyde\App\App::new()->addPackage(
\Inpsyde\GutenbergVersionManager\Package::new()
);

\add_action('muplugins_loaded', static fn () => $app->boot());
9 changes: 9 additions & 0 deletions .development/themes/test-theme/config/gutenberg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

return [
'versions' => [
'16.8.0',
],
];
3 changes: 3 additions & 0 deletions .development/themes/test-theme/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

declare(strict_types=1);
4 changes: 4 additions & 0 deletions .development/themes/test-theme/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* Theme Name: Gutenberg Versions Manager
* Theme Version: 1.0.0.0
*/
Empty file.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/node_modules/
/.psalm
/.idea
/.development

/auth.json
/.phpunit.result.cache
Expand Down

0 comments on commit a7ecbe3

Please sign in to comment.