Gulp workflow for WP theme development using _s.
- Browser refreshing using BrowserSync
- Sass compilation, mapping, auto-prefixing
- Javascript formatting with prettier, transpiling with Babel, minification
- JS linting with ES Lint. Currently, only using recommened rules and console warning.
IMPORTANT: Prettier extension in VS Code should be disabled while working on project!!!
There is a task to optimize images (gulp imgs) using imageOptim, but it is hit or miss as to whether it works or not. Optimizing manually will probably yield better results.
- Download your copy of _s and install in the "/wp-content/themes/" directory
- Add the files in this respository to the theme folder (you can omit README.md)
- Run npm install
- Set the URL of your local environment in the "projectURL" variable at the top of gulpfile.js
- Run the default task (gulp) to get started