WordPress Scaffold Plugin
This is a scaffold for creating a plugin for WordPress (https://wordpress.org). I wanted to restructure the project to keep the development files away from the source file for easier production compiling. The scaffold would create files from either wp scaffold plugin
or @hlashbrooke proposed template
Prerequisite
- Wordpress should already be installed if using
wp cli
Installation
- Clone the repo
- Create the necessary env variables for the project (maybe via
composer config --json extra
?) - Configure using
composer
Behind the scenes
This setup can/will create and configure the following things automatically:
- install WP CLI
- create project using either WP CLI or Wordpress Plugin Template
- install PHCS with WP Coding Std.
- install Wordpress Test Suite
- install and activate selected plugins using composer script
TODO
- Neaten how stuff are installed
- Make considerations for themes
- Add more boilerplates
- Better way to install boilerplates??
- Publish to wordpress SVN