mozilla/dxr — pull request #221 by ossreleasefeed (2014-01-08 20:21:58+00:00)
Title: Preliminary steps to get Grunt into code base for front end automation

@erikrose r? This looks very scare but it really is not ;) So, the one thing that works in this now, is to install all the dev dependencies using npm install from the root.

Next you can run:

grunt dev

At the moment this will lint all the JS, which should pass ;) and it will seem to run a task called uncss but, there is a bug in the module at the moment that I heard from Addy is fixed, and will be pushed to npm very soon, so once that is pushed, this will strip out all CSS we do not actually need. This is meant as a tool we can run once in a while to ensure we do not drag dead CSS around and cause bloat.

From here on there are a bunch of things I will be adding, like minifying our static assets, add js unit tests and some automated UI flow testing using Casper. Let me know what your think.