Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/log-oscon/generator-log-wp-plugin
Yeoman generator for a new WordPress plugin.
https://github.com/log-oscon/generator-log-wp-plugin
generator wordpress-plugin yeoman
Last synced: 18 days ago
JSON representation
Yeoman generator for a new WordPress plugin.
- Host: GitHub
- URL: https://github.com/log-oscon/generator-log-wp-plugin
- Owner: log-oscon
- License: gpl-2.0
- Created: 2015-03-13T09:32:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T12:23:14.000Z (about 7 years ago)
- Last Synced: 2024-11-16T04:00:40.720Z (about 2 months ago)
- Topics: generator, wordpress-plugin, yeoman
- Language: PHP
- Size: 62.5 KB
- Stars: 6
- Watchers: 11
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plugin Boilerplate Generator #
## What it is ##
It will generate a base WordPress Plugin project with PHPUnit, WP_Mocks and Gulp tasks.
## Instalation ##
Please read [Yeoman docs](http://yeoman.io) for Yeoman installation.
Run `generator-log-wp-plugin` from `npm`:
`npm install -g generator-log-wp-plugin`## Bootstrap ##
`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.php`
* `Deactivator.php`
* `I18n.php`
* `index.php`
* `Plugin.php`
* src/
* scripts/
* styles/
* templates/
* test/
* phpunit/
* `sample.test.php`## Sub-Generators:
Aditional sub-generators to generate/update files to enhance your plugin.
### Taxonomy
`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`It will be displayed the necessary code-block to be added in the Plugin to the correct taxonomy registry.
### Custom Post Type
`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`It will be displayed the necessary code-block to be added in the Plugin to the correct post type registry.
## Where can I report bugs? ##
[Git issues](https://github.com/log-oscon/generator-log-wp-plugin/issues)## Changelog ##
* 1.0.0
* Initial release;
* Bootstrap of plugins structure;
* Sub-generator for `Taxonomy`.
* 1.1.0
* Sub-generator for `Custom Post Type`.## Contribute: ##
* clone this repo;
* create a new branch;
* add you contribution as a Pull Request;
* test using `npm link` ([learn more](http://yeoman.io/authoring/)).### ROADMAP ###
* Sub-generator for `Frontend` type 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)## Contributors: ##
* log.OSCON
* [Edygar de Lima](https://github.com/edygar)
* [Ricardo Castelhano](https://github.com/RicCastelhano)
* [Rui Barbosa](https://github.com/narayon)## License: ##
[GPL-2.0 or later](http://www.gnu.org/licenses/gpl-2.0.html)