- Node 10+
-
Clone the repo into your themes directory:
npx degit git@github.com:carneyplusco/wp-starterkit.git your-project -
Run the scaffold generator to fill in some defaults:
npx hygen scaffold new -
From the theme directory, run
composer installto install PHP packages/plugins -
From the theme directory, run
npm installto install JS dependencies
- Boot your WordPress install via Local/Docker/etc and run
npm startfrom the theme directory to start the local development server
Your local domain is derived from the theme name. Check the
LOCAL_DOMAINconstant infunctions.php
- Run
npm run buildfrom the theme directory to compile assets for production
- Run
npm run deploy:ENVfrom the theme directory to deploy where ENV is one ofstagingorproduction.
For now, deploys are done locally so be sure your master branch is up-to-date before deploying to production.