Yeoman WordPress Plugin Generator
JavaScript PHP Shell CSS
Clone or download
Pull request Compare This branch is 101 commits ahead, 244 commits behind WebDevStudios:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
cpt
css
endpoint
include
js
namespace
options
taxonomy
test
vendor
widget
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
.yo-rc.json
README.md
composer.json
composer.lock
package.json
plugin-wp-base.js

README.md

Human Made Plugin Generator

Build Status

Yeoman WordPress plugin generator based on Human Made's coding standards.

Screenshot

Check out an example of a generated plugin.

Contributors

The following humans contributed to this awesome generator:

jazzsequence, CamdenSegal, jtsternberg, binarygary, bradp, JeffreyNaval, gregrickaby, DevNIX, JPry

Overview

This is a fork of the WDS Plugin Generator.

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.

Getting Started

Pre-requisites: You'll need node which comes with npm.

If you don't have Yeoman installed:

npm install -g yo

To install generator-hm-plugin from npm, run:

npm install -g generator-hm-plugin

To use generator-hm-plugin, cd to your WordPress plugins folder and:

yo hm-plugin

You'll be prompted with steps for creating your plugin.

(Planned) Sub-generators

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.