generator-wordpress-s-theme

Yeoman generator for a WordPress starter theme (using Underscores) with Gulp and other good stuff

Usage no npm install needed!

<script type="module">
  import generatorWordpressSTheme from 'https://cdn.skypack.dev/generator-wordpress-s-theme';
</script>

README

generator-wordpress-s-theme

Yeoman generator for a WordPress starter theme (using Underscores) with Gulp and other good stuff. This will install the last version of _s (Underscores) and optionally a Gulp setup ready for development and production.

Important

Warning!

The generator works only correct with Nodejs v6.x.x. and below.

Reason: not support Nodejs v7.x.x in node-sass module.

Job application ends with the message:

work Error: Node Sass does not yet support your current environment...

Installation

Install required tools yo and gulp:
npm install -g yo gulp
Install generator-wordpress-s-theme:
npm install -g generator-wordpress-s-theme

Run

Create a new directory, and go into:
mkdir my-new-theme && cd $_
Run yo wordpress-s-theme, and fill the info:
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 <package> to install frontend dependencies
  • Run gulp wiredep to include SCSS file in /sass/style.scss

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT Copyright (c) 2016 [MNyorba]