feat(template): Added template variables for Gitea
Signed-off-by: prettysunflower <me@prettysunflower.moe>
This commit is contained in:
@@ -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
3
.gitea/template
Normal file
@@ -0,0 +1,3 @@
|
||||
composer.json
|
||||
${REPO_NAME_KEBAB}.php
|
||||
README.md
|
2
.idea/wp-plugin-base.iml
generated
2
.idea/wp-plugin-base.iml
generated
@@ -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" />
|
||||
|
@@ -1,5 +1,7 @@
|
||||
{
|
||||
"autoload": {
|
||||
"psr-4": {"wp_plugin_base\\": "."}
|
||||
"psr-4": {
|
||||
"${REPO_NAME_PASCAL}\\": "."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user