feat(template): Added template variables for Gitea

Signed-off-by: prettysunflower <me@prettysunflower.moe>
This commit is contained in:
2025-07-21 17:29:55 -04:00
parent b1586bfeb5
commit 2fb3bd1164
5 changed files with 11 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
<?php
/*
* Plugin Name: wp-plugin-base
* Plugin URI: https://git.prettysunflower.moe/prettysunflower/wp-plugin-base
* Plugin Name: $REPO_NAME_KEBAB
* Plugin URI: $REPO_LINK
* Description: Template for new WordPress plugins.
* Version: 1
* Requires PHP: 8.1
@@ -12,7 +12,7 @@
* Coding style: PER-CS 2.0.0
*/
namespace wp_plugin_base;
namespace $REPO_NAME_PASCAL;
if (! defined('ABSPATH')) {
exit; // Exit if accessed directly

3
.gitea/template Normal file
View File

@@ -0,0 +1,3 @@
composer.json
${REPO_NAME}.php
README.md

View File

@@ -2,7 +2,7 @@
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/." isTestSource="false" packagePrefix="wp_plugin_base\" />
<sourceFolder url="file://$MODULE_DIR$/." isTestSource="false" packagePrefix="${REPO_NAME_PASCAL}\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
</content>
<orderEntry type="inheritedJdk" />

View File

@@ -1,2 +1 @@
# wp-plugin-base
# $REPO_NAME

View File

@@ -1,5 +1,7 @@
{
"autoload": {
"psr-4": {"wp_plugin_base\\": "."}
"psr-4": {
"${REPO_NAME_PASCAL}\\": "."
}
}
}