It will generate a base WordPress Plugin project with PHPUnit, WP_Mocks and Gulp tasks.
Please read Yeoman docs for Yeoman installation.
Run generator-log-wp-plugin from npm:
npm install -g generator-log-wp-plugin
yo log-wp-plugin will generate a package.json and a composer.php with the specified dependencies, an .editorconfig, a .gitignore, a phpunit.xml and a {plugin_name}.php, and will create the following directories and files:
- languages/
- lib/
Activator.phpDeactivator.phpI18n.phpindex.phpPlugin.php
- src/
- scripts/
- styles/
- templates/
- test/
- phpunit/
sample.test.php
- phpunit/
Aditional sub-generators to generate/update files to enhance your plugin.
yo log-wp-plugin:taxonomy will generate inside the plugin's lib folder the following files and directories:
- lib/
Taxonomy.php- Taxonomy/
{taxonomy_class}.php
- test/
- phpunit/
{taxonomy_test_name}.test.php
- phpunit/
It will be displayed the necessary code-block to be added in the Plugin to the correct taxonomy registry.
yo log-wp-plugin:cpt will generate inside the plugin's lib folder the following files and directories:
- lib/
PostType.php- PostType/
{post_type_class}.php
- test/
- phpunit/
{post_type_test_name}.test.php
- phpunit/
It will be displayed the necessary code-block to be added in the Plugin to the correct post type registry.
- 1.0.0
- Initial release;
- Bootstrap of plugins structure;
- Sub-generator for
Taxonomy.
- 1.1.0
- Sub-generator for
Custom Post Type.
- Sub-generator for
- clone this repo;
- create a new branch;
- add you contribution as a Pull Request;
- test using
npm link(learn more).
- Sub-generator for
Frontendtype files - Sub-generator for
Widget - Sub-generator for
WP-API EndPoint - App prompting refactor and field validation
- Suport for agnostic git URLs
- Option to add Gulp task for tests (validate if plugin is standalone)