0.1.3 • Published 10 years ago
generator-thm v0.1.3
generator-thm
Usage
A yeoman generator for KBD Wordpress sites.
Install
Install required tools yo and gulp:
npm install -g yo gulpInstall generator-thm:
npm install -g generator-thmRun
Create a new directory, and change into:
mkdir my-new-project && cd $_Run yo thm, and select options:
yo thmRemember
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
gulpand 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
gulpas usual - In order to build for production run
npm build - CSS file builds as
build.cssand 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.)