Skip to content

Commit

Permalink
feat(composer) Set type to wordpress-plugin and requires composer/ins…
Browse files Browse the repository at this point in the history
…tallers

Signed-off-by: Pierre PÉRONNET <pierre.peronnet@datadoghq.com>
  • Loading branch information
holyhope committed Aug 25, 2023
1 parent d11a327 commit 7a69733
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 9 deletions.
4 changes: 3 additions & 1 deletion autoload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
include_once 'vendor/autoload.php';
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}

spl_autoload_register( static function ( $class_name ) {
$file_name = path_join( path_join( __DIR__, 'classes' ), $class_name . '.php' );
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "natbienetre/wordpress-pass2cf",
"type": "wordpress-plugin",
"description": "Password 2 Cloudflare is a Wordpress plugin that allows you to synchronize your Wordpress passwords with Cloudflare Pages environment variables.",
"license": "MPL-2.0",
"scripts": {
Expand Down Expand Up @@ -31,11 +32,17 @@
]
},
"require": {
"guzzlehttp/guzzle": "^7.7"
"guzzlehttp/guzzle": "^7.7",
"composer/installers": "^2.2"
},
"require-dev": {
"wp-cli/wp-cli-bundle": "*",
"phpunit/phpunit": "^9",
"yoast/phpunit-polyfills": "^2"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}
159 changes: 152 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a69733

Please sign in to comment.