project blueprint
WordPress project starter kit, based on the excellent Bedrock boilerplate and Sage theme
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
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
-
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
-
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)
-
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)
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
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