2017 © Pedro Pelรกez
 

project blueprint

WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme

image

gladeye/blueprint

WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme

  • Friday, July 14, 2017
  • by kenvunz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Blueprint

WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme, (*1)

๐Ÿšจ Currently in real battle testing..., (*2)

Features

  • Better Wordpress folder structure
  • Manage Wordpress plugins and dependency via Composer
  • Easy WordPress configuration with environment specific files
  • Environment variables with Dotenv
  • Autoloader for mu-plugins (use regular plugins as mu-plugins)
  • Sass and ES6 Javascript for front-end development with HMR enabled
  • Webpack for compiling assets
  • Laravel's Blade as a templating engine

Requirements

Installation

  1. Create a new project in a new folder for your project:, (*3)

        composer create-project "gladeye/blueprint:1.0.0-beta.1" your-project-folder-name
    
  2. Update environment variables in .env file:, (*4)

    • DB_NAME - Database name
    • DB_USER - Database user
    • DB_PASSWORD - Database password
    • DB_HOST - Database host
    • WP_ENV - Set to environment (development, staging, production)
    • WP_HOME - Full URL to WordPress home (http://example.com)
    • WP_SITEURL - Full URL to WordPress including subdirectory (http://example.com/wp)
    • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT

    If you want to automatically generate the security keys (assuming you have wp-cli installed locally) you can use the very handy wp-cli-dotenv-command:, (*5)

        wp package install aaemnnosttv/wp-cli-dotenv-command
    
        wp dotenv salts regenerate
    

    Or, you can cut and paste from the Roots WordPress Salt Generator., (*6)

  3. Run yarn start and build something awesome!, (*7)

Theme structure

public/content/themes/sage/     # โ†’ Root of your Sage based theme
โ”œโ”€โ”€ app                         # โ†’ Theme PHP
โ”‚ย ย  โ”œโ”€โ”€ admin.php               # โ†’ Theme customizer setup
โ”‚ย ย  โ”œโ”€โ”€ filters.php             # โ†’ Theme filters
โ”‚ย ย  โ”œโ”€โ”€ helpers.php             # โ†’ Helper functions
โ”‚ย ย  โ”œโ”€โ”€ post-types.php          # โ†’ Custom Post types register list
โ”‚ย ย  โ”œโ”€โ”€ setup.php               # โ†’ Theme setup
โ”‚ย ย  โ”œโ”€โ”€ taxonomies.php          # โ†’ Custom Taxonomies register list
โ”‚ย ย  โ”œโ”€โ”€ post-types/             # โ†’ Custom Post Types definitions
โ”‚ย ย  โ””โ”€โ”€ taxonomies/             # โ†’ Custom Taxonomies definitions
โ””โ”€โ”€ resources                   # โ†’ Theme assets and templates
    โ”œโ”€โ”€ assets                  # โ†’ Front-end assets
    โ”‚ย ย  โ”œโ”€โ”€ options.json        # โ†’ Settings for compiled assets
    โ”‚ย ย  โ”œโ”€โ”€ dist/               # โ†’ Built theme assets (never edit)
    โ”‚ย ย  โ”œโ”€โ”€ fonts/              # โ†’ Theme fonts
    โ”‚ย ย  โ”œโ”€โ”€ images/             # โ†’ Theme images
    โ”‚ย ย  โ”œโ”€โ”€ media/              # โ†’ Theme others media (e.g svg, video)
    โ”‚ย ย  โ”œโ”€โ”€ scripts/            # โ†’ Theme scripts
    โ”‚ย ย  โ””โ”€โ”€ styles/             # โ†’ Theme styles
    โ”œโ”€โ”€ functions.php           # โ†’ Theme bootstrap
    โ”œโ”€โ”€ index.php               # โ†’ Never manually edit
    โ”œโ”€โ”€ screenshot.png          # โ†’ Theme screenshot for WP admin
    โ”œโ”€โ”€ style.css               # โ†’ Theme meta information
    โ””โ”€โ”€ views                   # โ†’ Theme templates
        โ”œโ”€โ”€ layouts/            # โ†’ Base layouts
        โ””โ”€โ”€ partials/           # โ†’ Partial templates

Theme setup

Edit app/setup.php to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars., (*8)

Additional docs

License

MIT ยฉ Gladeye, (*9)

The Versions

14/07 2017

dev-master

9999999-dev

WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2017

1.0.0-beta.1

1.0.0.0-beta1

WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme

  Sources   Download

MIT

The Requires

 

The Development Requires