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 in your code editor.
- Set up a local WordPress instance. Local could be helpful.
- Make necessary changes to composer.json and gulpconfig.js.
- If this is a fresh set-up, run
npm run setupin 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 buildin the terminal to create a compiled copy of the site - Run
gulp watchin the terminal for a development instance - Run
gulp --tasks-simplein the terminal to view all available tasks - Add
--productionto prepare output for production use