Yeoman generator for a WordPress starter theme (using Underscores) with Gulp and other good stuff
npm install generator-wordpress-s-theme_s (Underscores) and optionally a Gulp setup ready for development and production.
work Error: Node Sass does not yet support your current environment...`
>
Installation
##### Install required tools yo and gulp:
`bash
npm install -g yo gulp
`
##### Install generator-wordpress-s-theme:
`bash
npm install -g generator-wordpress-s-theme
`
$3
##### Create a new directory, and go into:
`bash
mkdir my-new-theme && cd $_
`
##### Run yo wordpress-s-theme, and fill the info:
`bash
yo wordpress-s-theme
`
Gulp usage
- Run gulp to watch for changes
- Run gulp build to build your theme for production (you will find a my-new-theme.zip file in my-new-theme/dist/)
- (Optional) Run gulp build-clean before gulp build to cleanup the my-new-theme/dist/ folder
Bower usage
- Run bower install --save to install frontend dependencies
- Run gulp wiredep to include SCSS file in /sass/style.scss`