To run this workflow, you should have the below installed globally. If you are on Mac, consider using Homebrew to prevent permission issues.
The package comes with linter files to maintain code style and you are encouraged to have the below linters installed.
- Set up a local WordPress instance. Local by Flywheel could be helpful.
- Make necessary changes to composer.json and gulpconfig.js.
- If this is a fresh set-up, run
npm run setup
in the terminal to get the dev dependencies and WordPress ready; otherwise runnpm install && npm audit fix && gulp build && composer install
. - Set up config credentials for different environments if necessary.
- Run
gulp build
in the terminal to create a compiled copy of the site - Run
gulp watch
in the terminal for a development instance - Run
gulp --tasks-simple
in the termianl to view all avaialble tasks - Add
--production
to prepare output for production use