This is a Yeoman generator for kickstarting ProcessWire projects with a Fabricator UI Toolkit.
The generator:
- creates a project structure allowing you to easily manage the following:
- website source
- database exports
- living styleguide
- downloads ProcessWire
- installs Fixate's ProcessWire MVC Boilerplate
- installs Fixate's Fabricator Boilerplate
- installs a SCSS Framework
- installs Bower for easily managing your dependencies
- creates a number of files for smoother development and collaboration:
- .editorconfig
- .gitignore
- .gitattributes
- .bowerrc
- robots.txt
- installs Gulp with an extensive task list (written in CoffeeScript for your viewing pleasure) fully equipped for
- coffee and Sass compilation
- JS uglification
- image optimisation
- timestamped local and production database dumps
- rsync deployments
- gulp auto reload
- other treasures!
Yeoman is a Node package which can be installed via npm:
$ npm install -g yo
Unlike many Yoeman Generators, this generator doesn't live in Yeoman's registry, as it is quite specific to our needs.
Until we decide to add our generator to the Yeoman registry, this is how you can enjoy some of the magic:
# clone the generator
$ git clone https://github.com/fixate/generator-fixate-pw.git
# let Yeoman know about the generator
$ cd generator-fixate-pw
$ npm link
# install all the generator dependencies
$ npm install
Initiate the generator from the root of your project's folder:
$ cd your-project-folder
$ yo fixate-pw
Once Yeoman has done all the hard work, you have a few small tasks to run before you're free to get going.
All task automation is handled through Gulp and Webpack.
$ npm installThis will install all development dependencies, as well as create copies for non-committed config files, and creation of symlinks for assets in the living styleguide
This project makes use of Fabricator as a living styleguide. To get up and running:
$ cd styleguide && npm installOnce installed, you can start a server for the styleguide that will automatically update on chnages to styles with the following:
# from styleguide/
$ gulp --devGulp will compile coffee and scss files when updated, and reload your browser via Browser Sync at the URL it specifies when starting Gulp (make sure to update the bsProxy property in the generated secrets.coffee with your local site's URL)
# from project root
$ gulpFor each template, visit your admin and set all templates to use mvc:
Setup -> [your template] -> Files -> Alternate Template Filename