Skip to content

xeader/lumberjack

Repository files navigation

Lumberjack

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

Requirements

  • PHP >= 7.2
  • Composer - Install
  • memory_limit >= 512M
  • upload_max_filesize >= 20M
  • php-imagick >= 3.4.4
  • ImageMagick >= 7.0

Setup

  • Database variables
    • DB_NAME - Database name
    • DB_USER - Database user
    • DB_PASSWORD - Database password
    • DB_HOST - Database host
    • Optionally, you can define DATABASE_URL for 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

Frontend / Theme

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 build

Run a PHP server to /frontend/public

yarn serve // or npm run serve

Build frontend project and watch for changes

yarn watch // or npm run watch

Builds frontend project (and watch for changes) serving the Wordpress application

yarn wordpress-hot // or npm run wordpress-hot

Builds frontend project and deploy to Wordpress assets folder

yarn wordpress // or npm run wordpress

About

A Wordpress boilerplate based on roots/bedrock

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors