Generate a best-practice boilerplate for WordPress plugin development.
The generated plugin utilises the functionality packaged in the DTRT WordPress Plugin Boilerplate dependency.
- Create a Git repo to store the code
- Install the generator dependencies
- Install the generator
- Set up the required environmental variables
- Start your MySQL Server
- Use the generator to scaffold a custom plugin
- Set up Github Actions CI
- Use the features of the DTRT WordPress Plugin Boilerplate
This is useful if your node_modules
or vendor
folders have been deleted or become corrupted.
This generator will need to be periodically updated as technologies change:
- Update a previously generated plugin as necessary, see Appendix: Generated plugins
- Copy relevant changes over to the DTRT WordPress Plugin Boilerplate
- Build, test, version & release the updated DTRT WordPress Plugin Boilerplate, see Release an update
- Copy relevant changes over to the DTRT WordPress Plugin Boilerplate Generator
- Update the version of the DTRT WordPress Plugin Boilerplate required by the DTRT WordPress Plugin Boilerplate Generator in
./generators/app/templates/composer.json
:
"require": {
"dotherightthing/wpdtrt-plugin-boilerplate": "^1.7.12"
},
- Build, test, version & release the updated DTRT WordPress Plugin Boilerplate Generator
- Update previously generated plugins to reference the updated DTRT WordPress Plugin Boilerplate and DTRT WordPress Plugin Boilerplate Generator, see Release an update
This plugin is the result of countless hours of research, including these great resources: