A yeoman generator for KBD Wordpress sites.
npm install -g yo gulp
npm install -g generator-thm
mkdir my-new-project && cd $_
yo thm
After install remeber to do a few things.
- Change the proxy address in config.coffee.
- Sometimes ACF files are unzipped, but not installed. You may need to delete them and re-install through WP.
- Enter license keys for both MDB and ACF.
- Run
gulp
and you should be good to go.
- Assets directory moved to the root
- Webpack now compiles ES6/Sass
- For local dev run
gulp
as usual - In order to build for production run
npm build
- CSS file builds as
build.css
and load.js is no longer in footer by default. Make your own decisions about using loadjs or something else. - For hot-reloading to work you must add acceptance to modules. (TODO: automatically apply this via NPM module.)