whitespace-se / wordpress-boilerplate-standard
Boilerplate for a standard setup of Wordpress
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Type:project
Requires
- ffraenz/private-composer-installer: ^5.0
- roots/wordpress: ^5.0.0
- whitespace-se/wordpress-bundle-standard: ^4.0.0
README
Boilerplate for a standard setup of Wordpress
How to install
- Create project with Composer
composer create-project whitespace-se/wordpress-boilerplate-standard <folder>
- Update package name, author and description in composer.json and package.json.
- Duplicate all example files in /config and update them to match your setup.
- Create your empty database.
- Run
valet link
. - Run
valet open
and then the Wordpress install wizard.
Install and activate ACF Pro
- Create a .env file and add your ACF Pro key.
- Install ACF Pro:
composer require "advanced-custom-fields/advanced-custom-fields-pro":"*"
- Activate the ACF Pro plugin:
wp plugin activate advanced-custom-fields-pro
Final steps
- Set
phpVersion
inside .prettierrc.yml to the lowest version of PHP required by your environments.
Format code using Prettier
- Run
yarn install
to install Prettier. - Run
yarn format
to format all applicable files. - Install a sutiable Prettier plugin for you aditor to format files automatically on save.
- Also install the Editorconfig for your editor to format files not supported by Prettier.