generator-thm
v0.1.3
Published
thm generator
Downloads
16
Readme
generator-thm
Usage
A yeoman generator for KBD Wordpress sites.
Install
Install required tools yo
and gulp
:
npm install -g yo gulp
Install generator-thm
:
npm install -g generator-thm
Run
Create a new directory, and change into:
mkdir my-new-project && cd $_
Run yo thm
, and select options:
yo thm
Remember
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.
New changes for v0.1.1+
- 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.)