Skip to content

Genesis starter theme with webpack and composer autoloading. Ideal starting point for new Genesis custom child theme projects.

Notifications You must be signed in to change notification settings

joedooley/genesis-starter

Repository files navigation

Genesis Starter

Custom Genesis starter for child theme development. Starter theme utilizes composer for PSR-4 autoloading and webpack for asset compilation and hot module reloading.


Installation

  1. Clone genesis-starter to wp-content/themes directory.
    1. git clone [email protected]:joedooley/genesis-starter.git
  2. Rename child theme, update style.css banner config in the webpack.mix.js file, and update all namespaces.
    1. ie... Change namespaces from DevDesigns\GenesisStarter to YourCompany\ChildThemeName
    2. Don't forget to change the namespace in autoload.psr-4 in composer.json
  3. Run npm install from plugin root directory.
    1. The postinstall npm script runs composer install automatically.
  4. During development:
    1. run npm run watch, npm run hot, or npm run dev to start compiling assets with webpack.
  5. During production:
    1. run npm run production to compile minified assets to child theme dist directory.

Notes

  • All class files in the src directory will be autoloaded by composer.
  • Composer will not autoload PHP files that are not classes unless you add each file to the files array in your composer.json. You will have to run composer update as well.
  • If your not utilizing CI in your deployments remove composer's vendor directory from .gitignore and commit the entire vendor directory into version control.

About

Genesis starter theme with webpack and composer autoloading. Ideal starting point for new Genesis custom child theme projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published