This boilerplate was built for my own WordPress project, feel free to use it and change it as your own convenience. The structure is heavily inspired by Bedrock.
- WordPress Packagist
- Gulp tasks
- Timber
To run this boilerplate, you need :
- At least
PHP 5.6
composer
installedyarn
ornpm
installed
First, install all the dependencies by running :
composer install
yarn install
And then, run :
project:setup
It will setup a .env
file, it is where you put sensitive information such as database login.
The boilerplate contain some script that help you during the development process.
composer project:setup
: Use it at the initial setup of the project, it will add a .env filecomposer env:regenerate
: Regerate the .env fileyarn run start
: Start the dev environmentyarn run build
: Build all assets (css, js, font, image)yarn run images
: Copy image to thedist
directory