Git Product home page Git Product logo

generator-wp's Introduction

WordPress Project Generator

Generator-wp is a Yeoman generator for generating a base WordPress project.

Installation

To use this generator you will need NodeJS installed on your computer.

Once you have Node ready to go, you can install Yeoman through npm:

$ npm install -g yo

To install generator-wp clone this repository, enter the directory, and link it to npm:

$ git clone [email protected]:ChrisWiegman/generator-wp.git && cd generator-wp
$ npm install
$ npm link

Usage

In the desired project directory (where your project will go), initiate the generator:

$ yo wp:<project-type>

For each project type you get:

  • Composer to manage server-side dependencies
  • NPM to manage development dependencies
  • i18n .pot file generation
  • PHPUnit for PHP unit testing
  • A fully-fleshed out, name-spaced setup for WordPress development (if appropriate)
  • A Lando configuration to get you actually working on code quickly

Current project types include the following:

WordPress core

This sub-generator scaffolds out a WordPress installation for testing of products/code/etc. It is not designed to be a base for a plugin or other project.

$ cd [wordpress-directory]
$ yo wp:core

Note the core project does not come with testing tools nor does it generate a .pot file or other assets. It is solely a core install of WordPress for testing anything you might need to.

Plugin

This sub-generator scaffolds out a standard WordPress plugin.

$ cd [my-plugin-dir]
$ yo wp:plugin

Notes

Before getting started you should create your repository on your platform of choice. Use the plugin slug for the repository name. For example, if your plugin were to appear in a WordPress installation in the folder wp-my-super-plugin than your repository should be called wp-my-super-plugin

For information on developing and using a generated plugin see the README.md file within after generating.

More project types coming soon

generator-wp's People

Contributors

chriswiegman avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.