2017 © Pedro Peláez
 

project wp-boilerplate

image

mejta/wp-boilerplate

  • Saturday, October 21, 2017
  • by mejta
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 14 % Grown

The README.md

WordPress development boilerplate

Development boilerplate for building custom plugin and theme. This boilerplate is for projects, that have no continuous development (therefore there is no WordPress framework used) and that:, (*1)

  • uses Twig for templates,
  • requires plugins in admin that are necessary for it's run,
  • provides standard way for updates/deployments (every deployment is plugin update and goes through standard update process),
  • has a theme that takes care only of data representation,
  • has a plugin that takes care of everything else (custom post types, custom fields, forms, etc.),
  • has one repository for theme and plugin,
  • has a possibility to have multiple themes,
  • has a nice structure that leverage modern , WordPress and frontend development,
  • uses composer for it's dependencies (that are not WP plugins).

What's inside

How to contribute

If you want to improve this boilerplate, feel free to open a pull request., (*2)

Requirements

  • Running WordPress instance
  • Node.js

How to start a new project development

  1. Create project with composer inside wp-content/plugins directory:
cd wp-content/plugins
composer create-project mejta/wp-boilerplate [your plugin name]
cd [your plugin name]
  1. Install dependencies:
npm install
  1. Edit plugin.json file and whitelabel your plugin (Be careful, you can do it only once, so do it right). plugin.json is also used for plugin updates.
node whitelabel.js
  1. Edit admin/class-admin.php and update information in tgmpa_register method (plugin dependencies) and check_version method (plugin updates)., (*3)

  2. Compile your assets for development:, (*4)

npm run watch
  1. Compile your assets for production:
npm run production

The Versions

21/10 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

21/10 2017

dev-develop

dev-develop

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

21/10 2017
21/10 2017
21/10 2017

dev-hotfix/1.0.8

dev-hotfix/1.0.8

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

21/10 2017
21/10 2017

dev-hotfix/v1.0.7

dev-hotfix/v1.0.7

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

21/10 2017
21/10 2017

dev-hotfix/v1.0.6

dev-hotfix/v1.0.6

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

20/10 2017
20/10 2017

dev-hotfix/v1.0.5

dev-hotfix/v1.0.5

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

20/10 2017
19/10 2017
19/10 2017

dev-hotfix/v1.0.3

dev-hotfix/v1.0.3

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

19/10 2017
19/10 2017

dev-hotfix/v1.0.2

dev-hotfix/v1.0.2

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

19/10 2017
19/10 2017

dev-hotfix/v1.0.1

dev-hotfix/v1.0.1

  Sources   Download

MIT

The Requires

 

by Daniel Mejta

19/10 2017