volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 99 forks source link

jQuery 1.9.0 #139

Closed guybedford closed 11 years ago

guybedford commented 11 years ago

I'm not sure where to post this, but up until jQuery 1.8.2, the command volo add jquery always just worked.

Now with jQuery 1.9.0, it seems that it gives jQuery undefined when installed with volo.

Any tips on where to trace this would be appreciated.

jrburke commented 11 years ago

Hmm, it works for me. Maybe you can tell me how you get into that state. Here is what I did

[~/git/temp]$ volo create jj
Downloading: https://nodeload.github.com/volojs/create-template/legacy.zip/master
https://api.github.com/repos/volojs/create-template/zipball/master used to create jj
[~/git/temp]$ cd jjs
[~/git/temp/jj]$ volo add jquery
Using github repo "jquery/jquery" for "jquery"...
Downloading: http://code.jquery.com/jquery-1.9.0.js
Installed github:jquery/jquery/1.9.0 at www/js/lib/jquery.js
AMD dependency name: jquery

I then modified www/js/app/main.js to console.log(require('jquery')) and I got a function value.

guybedford commented 11 years ago

Apologies - this must have been something else in my environment, I'm not noticing this anymore. Will aim to test more thoroughly next time.