Yeoman WordPress plugin generator based on Human Made's coding standards.
npm install generator-hm-plugin> Yeoman WordPress plugin generator based on Human Made's coding standards.
Check out an example of a generated plugin.
jazzsequence, CamdenSegal, jtsternberg, binarygary, bradp, JeffreyNaval, gregrickaby, DevNIX, JPry
The main difference between the HM and WDS generator is the structure of the generated plugins. The HM generator assumes plugins to be built on PHP7+ using namespaces throughout rather than singleton classes.
Pre-requisites: You'll need node which comes
with npm.
If you don't have Yeoman installed:
``bash`
npm install -g yo
To install generator-hm-plugin from npm, run:
`bash`
npm install -g generator-hm-plugin
To use generator-hm-plugin, cd to your WordPress plugins folder and:
`bash`
yo hm-plugin
You'll be prompted with steps for creating your plugin.
Once your nifty new plugin has been generated, cd into your new plugin's
directory. While in the plugin directory, you can run additional commands
called sub-generators to automatically generate files to enhance your plugin.
* yo hm-plugin:include Basic Includeyo hm-plugin:cpt
* Custom Post Typeyo hm-plugin:taxonomy
* Taxonomyyo hm-plugin:options
* Option Pageyo hm-plugin:widget
* Widgetyo hm-plugin:endpoint
* WP-API Endpointyo hm-plugin:js
* Javascriptyo hm-plugin:css` Styles
*