Skip to content
Alex Recker edited this page Nov 30, 2015 · 4 revisions

A page for explaining the reasoning behind code or design decisions that seem strange at first glance.

Besides hinting and testing JavaScript, what the hell is grunt doing?

Third party libraries, like angular and others, are installed with npm and bundled through grunt tasks. I've basically decided to rely on npm for what bower how was intended, since

a) Pretty much all bower packages are now available for npm

b) Bower sucks in automation

So scripts and stylesheets are installed with npm, then

  1. browserify grabs all the needed JavaScripts (including globals referenced in static/js/globals.js) and creates a single vendor.min.js
  2. cssmin does the same for external stylesheets
  3. copy copies anything else needed

What is going on with the font-awesome regex stuff?

Font-Awesome expects its fonts directory to be in ../fonts. I didn't want to make a special top level folder just for their decision, so I have this hacky grunt task that replaces the path with my own location.

Clone this wiki locally