- Grunt
- Jade
- Stylus/Nib
- Bower
- Live Reload
bower install --save SOMETHING
- Add scripts to
src/jade/footer.jade
- Add stylesheets to
src/jade/header.jade
- Add scripts the uglify task in
Gruntfile.coffee
- Add stylesheets to the cssmin task in
Gruntfile.coffee
Adding your includes to header.jade
and footer.jade
files allows thier use in the /dev
version of the site. Files are included in the exported /dest
version of the site when you add them to the Gruntfile tasks.
You will also need an HTTP server, I prefer nginx. If you don't already have a local server, SimpleHTTPServer is a good option. You'll need another terminal window.
python -m SimpleHTTPServer
You should serve up the whole reportmaker
directory on your webserver. This means you will develop your site at the url /reportmaker/dev
- Clone the repo
git clone ...
- Install Global Dependancies
npm install -g bower grunt-cli
- Install Server Side Dependancies
npm install
- Install Client Side Dependancies
bower install
- Run Grunt
grunt
orgrunt watch
There is a data.json file in the root dir that handles site wide template data. Define variables in that file to use them in your templates.
grunt
default task is watch (LiveReload with Stylus and Jade templates)grunt watch
same as above, outputs a dev version of the site todev/
and starts a livereload servergrunt stylus
compile stylusgrunt jade
compile jadegrunt clean
clean up the out & dest directoriesgrunt build
clean, jade then stylusgrunt export
builds, concatonates and minifies todest/
Fontawesome - You'll need to copy the /fonts directory into src_files
to make it work in production, any bower component that does an relative internal 'require', 'url' or 'import' call will run into this sort of thing.
Google Fonts - I really wish Bower and Google Fonts would play nice together, but they just don't. For now just use the bypass
configuration section to include the stylesheet directly from the CDN. (even in production)