Custom Genesis starter for child theme development. Starter theme utilizes composer for PSR-4 autoloading and webpack for asset compilation and hot module reloading.
- Clone
genesis-starter
towp-content/themes
directory.git clone [email protected]:joedooley/genesis-starter.git
- Rename child theme, update
style.css
banner config in thewebpack.mix.js
file, and update all namespaces.- ie... Change namespaces from
DevDesigns\GenesisStarter
toYourCompany\ChildThemeName
- Don't forget to change the namespace in
autoload.psr-4
incomposer.json
- ie... Change namespaces from
- Run
npm install
from plugin root directory.- The postinstall npm script runs
composer install
automatically.
- The postinstall npm script runs
- During development:
- run
npm run watch
,npm run hot
, ornpm run dev
to start compiling assets with webpack.
- run
- During production:
- run
npm run production
to compile minified assets to child themedist
directory.
- run
- 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 runcomposer update
as well. - If your not utilizing CI in your deployments remove composer's
vendor
directory from.gitignore
and commit the entirevendor
directory into version control.