1.1.0 • Published 3 years ago

wpp-generate v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

wpp-generate

Generate a WordPress plugin from a boilerplate. The generated plugin includes simple files just for my personal use for now.

Install

Install the package globally:

npm install -g wpp-generate

Or use it with npx:

npx wpp-generate

Usage

Run the command:

wpp-generate

And fill the form:

  1. Plugin Name (Required)
  2. Plugin Slug (Required)
  3. Plugin URI
  4. Description
  5. Version
  6. Author
  7. Author URI

When you run the command, it will clone the roelmagdaleno/wp-plugin-boilerplate repository to the current path you're in.

Plugin Structure

The generated project will contain the next structure:

plugin-name/
├─ includes/
│  ├─ constants.php
│  ├─ required-files.php
│  ├─ class-plugin-name.php
├─ plugin-name.php