A Wordpress boilerplate with modern development tools, easier configuration, and an improved folder structure based on Bedrock by Roots, made by Xeader with frontend theme boilerplate based on Blendid-plus
- PHP >= 7.2
- Composer - Install
- memory_limit >= 512M
- upload_max_filesize >= 20M
- php-imagick >= 3.4.4
- ImageMagick >= 7.0
- Database variables
DB_NAME- Database nameDB_USER- Database userDB_PASSWORD- Database passwordDB_HOST- Database host- Optionally, you can define
DATABASE_URLfor using a DSN instead of using the variables above (e.g.mysql://user:password@127.0.0.1:3306/db_name)
WP_ENV- Set to environment (development,staging,production)WP_HOME- Full URL to WordPress home (https://example.com)WP_SITEURL- Full URL to WordPress including subdirectory (https://example.com/wp)AUTH_KEY,SECURE_AUTH_KEY,LOGGED_IN_KEY,NONCE_KEY,AUTH_SALT,SECURE_AUTH_SALT,LOGGED_IN_SALT,NONCE_SALT- Generate with wp-cli-dotenv-command
- Generate with our WordPress salts generator
Lumberjack theme, a WordPress theme using _s (underscores) xeader/itcss and xeader/blendid-plus, is now included in lumberjack
###Setup
To use wordpress-hot command change the Gulp command in the file app/themes/lumberjack-theme/frontend/config/task-config.js
...
gulp.task("wordpress-hot", function(done) {
PATH_CONFIG.dest = "./../assets";
TASK_CONFIG.browserSync = {
proxy: "xeader.lumberjack", // <--- ********* HERE ********
files: ["./src/**/*"]
};
TASK_CONFIG.javascripts.publicPath =
"/app/themes/lumberjack-theme/assets/javascripts"; // <--- ********* HERE ********
...Compile frontend code to /frontend/public
yarn build // or npm run buildRun a PHP server to /frontend/public
yarn serve // or npm run serveBuild frontend project and watch for changes
yarn watch // or npm run watchBuilds frontend project (and watch for changes) serving the Wordpress application
yarn wordpress-hot // or npm run wordpress-hotBuilds frontend project and deploy to Wordpress assets folder
yarn wordpress // or npm run wordpress