addyosmani/aura — pull request #106 by robertd (2012-08-31 02:10:54+00:00)
Title: Replace underscore with lodash

Based on discussion on #105

@sindresorhus I tried to replace underscore completely with lodash but I experienced problems when running `grunt build`. On lodash's site there is a statement that lodash lirary is drop-in replacement type of library.

```
➜ aura-fork git:(master) ✗ grunt build
Running "clean:0" (clean) task
Cleaning "dist/"...OK

Running "lint:files" (lint) task
Lint free.

Running "jasmine:files" (jasmine) task
Running specs for SpecRunner.html
.............
>> 39 assertions passed in 13 specs (67ms)

Running "requirejs" task
>> RequireJS optimizer started

timers.js:103
if (!process.listeners('uncaughtException').length) throw e;
^
Error: Error: ENOENT, no such file or directory '/Users/robert/Code/aura-fork/dist/apps/demo/js/underscore.js'
In module tree:
app
core
aura_core
base

at Object.fs.openSync (fs.js:338:18)

at build (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:14153:23)
at requirejs.optimize.runBuild (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:15370:30)
at Object.context.execCb (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:1777:33)
at Object.Module.check (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:1078:51)
at Object.Module.enable (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:1319:22)
at Object.Module.init (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:977:26)
at Object.context.require (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:1579:28)
at requirejs (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:1861:24)
at Function.requirejs.optimize (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/node_modules/requirejs/bin/r.js:15381:13)
at Object. (/Users/robert/Code/aura-fork/node_modules/grunt-requirejs/tasks/require.js:88:9)

```

I think that means that developer needs to keep the current 'underscore' structure but just replace the location of the lib to point to lodash.js. I may be wrong on this one. What are your thoughts?