Generate basic scaffolding for an OOPS-WP plugin.
Add this repo:
"repositories":[
{
"type": "vcs",
"url": "https://github.com/oddevan/oops-generators"
}
],
"require": {
"oddevan/oops-generators": "dev-master"
}
Make sure your composer.json
has the necessary info, especially your psr-4
autoloader:
"name": "smolblog/smolblog-wp",
"description": "Bigger than micro, smaller than medium.",
"version": "0.1.0",
"authors": [
{
"name": "Evan Hildreth",
"email": "me@eph.me",
"homepage": "http://eph.me",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Smolblog\\WP\\": "plugins/smolblog-wp/src/"
}
}
Add the configuration:
"extra": {
"oopsgen": {
"text-domain": "smolblog-wp"
}
}
And add the script handler:
"scripts": {
"oopsgen": "oddevan\\oopsGenerators\\Main::go"
}
Then just type composer oopsgen
to read the help text and start going!
Pull requests welcome. Please.