We make a lot of plugins at WebDevStudios. Whether adding functionality to client projects, creating open source plugins to give back, or developing premium products, we are always spinning up new plugins. To speed up this process, we created generator-plugin-wp, a Yeoman generator which streamlines all parts of the plugin development process. I’ve talked about it previously in my posts Get a Plugin Kickstart with Yeoman & generator-plugin-wp and Recent Changes to generator-plugin-wp. In this post, I’m going to walk through the actual process of creating a plugin with this tool. Before you get started, you will want to install Node, and then use NPM to install the generator and a few other CLI tools that are necessary for its full use. npm install -g yo grunt-cli generator-plugin-wp Now, from the plugin directory in your terminal, run: yo plugin-wp From here you can enter the title of your new plugin. I’m going to make a plugin for tracking and publicly listing my many missions in Kerbal Space Program: This provides the basic setup for my plugin, and now my plugin directory now looks like this: This is where things start to get cool. Without any changes, we have a unit tested plugin,
Share This