Grunt Init Template For WordPress Plugin Boilerplate
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 4 commits behind fooplugins:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
root
.gitignore
README.md
contributing.json
example-command-line.png
output-folder-structure.png
output-plugin-screen.png
rename.json
template.js

README.md

grunt-wp-boilerplate

Create a WordPress plugin with grunt-init based on the WordPress Plugin Boilerplate

Installation

If you haven't already done so, install grunt-init:

npm install -g grunt-init

Once grunt-init is installed, place this template in your ~/.grunt-init/ directory. It's recommended that you use git to clone this template into that directory, as follows:

Linux/Mac Users

git clone git@github.com:fooplugins/grunt-wp-boilerplate.git ~/.grunt-init/wp-boilerplate

Windows Users

git clone git@github.com:fooplugins/grunt-wp-boilerplate.git %USERPROFILE%/.grunt-init/wp-boilerplate

Usage

  1. At the command-line, create a new directory in wp-content/plugins
  2. cd into an empty directory
  3. run the following command and follow the prompts
grunt-init wp-boilerplate

Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.

Screenshots

Example Command Line

Output Folder Structure

Output Plugin In WP

Credit

Most of this is copied from grunt-wp-plugin by 10up, so thanks to them!