yeoman/grunt-bower-requirejs — pull request #45 by robdodson (2013-08-04 03:23:37+00:00)
Title: Bower 1.0.0

Not ready to be merged just yet but getting closer...

I was having issues with the old `bower-install` task because some of the dependencies need the new `resolutions` object. I switched to using an actual bower file and running bower as a child process. That seems to work but I'm getting random ECMDERR errors now.

```
bower cached git://github.com/documentcloud/underscore.git#1.5.1
bower validate 1.5.1 against git://github.com/documentcloud/underscore.git#~1.5.1
bower cached git://github.com/components/jquery.git#1.10.2
bower validate 1.10.2 against git://github.com/components/jquery.git#~1.10.0
bower cached git://github.com/jrburke/requirejs.git#2.1.8
bower validate 2.1.8 against git://github.com/jrburke/requirejs.git#~2.1.8
bower cached git://github.com/scottjehl/Respond.git#1.2.0
bower validate 1.2.0 against git://github.com/scottjehl/Respond.git#~1.2.0
bower cached git://github.com/lvivski/anima.git#0.3.2
bower validate 0.3.2 against git://github.com/lvivski/anima.git#~0.3.2
bower cached git://github.com/twitter/typeahead.js.git#0.9.3
bower validate 0.9.3 against git://github.com/twitter/typeahead.js.git#~0.9.3
bower cached git://github.com/douglascrockford/JSON-js.git#e39db4b7e6
bower validate e39db4b7e6 against git://github.com/douglascrockford/JSON-js.git#*
bower cached git://github.com/GeneralElectric/jquery-ui-touch-punch.git#0.1.0
bower validate 0.1.0 against git://github.com/GeneralElectric/jquery-ui-touch-punch.git#0.1.0
bower cached git://github.com/robdodson/highcharts.com.git#3.0.1
bower validate 3.0.1 against git://github.com/robdodson/highcharts.com.git#~3.0.1
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/documentcloud/underscore.git", exit code of #128
```

It doesn't matter how I run bower, these errors occur. Rerunning bower makes them go away. I tried with the old bower-install task, the new one and by just running bower myself from the command line. It seems like it breaks on random files. Perhaps something is wonky in 1.1.0? I opened an issue here (https://github.com/bower/bower/issues/713). It could also be user error :smile:

The other issue has to do with highstock and how big it is. Bower clones all 49MB of it which takes forever and then extracting the archive also takes a really long time. There's an `ignore` property in the `bower.json` for highstock but that doesn't seem to effect things until the archive has been expanded. While highstock was sluggish previously, I want to say that it's a lot slower now in 1.0.0. We use highstock for our testing because it has multiple js files in its main array (#16). If there is a smaller library that also uses multiple files in main maybe we can switch to that instead. I just don't know of one, maybe you do @sindresorhus?

Aside from everything above I've got it working and the tests are passing. I just needed to make one small tweak to our code to make sure the paths in `main` come in as an Array.