busterjs/buster — Issue #126: Loading external sources with the "resources" proxy
Author: jkarsrud
Created: 2012-03-09 12:34:11+00:00
State: open

In some cases, you might not want to have a library dependency directly in your project, so you want to load it from a CDN or some other external server.

I tried doing this with the following config, but the script isn't actually loaded, resulting in tests failing because of a missing dependency;

```javascript
var config = module.exports;

config['Browser tests'] = {
rootPath: '../',
env: 'browser',
resources: [
{
path: 'googleapis',
backend: 'https://ajax.googleapis.com/'
}
],
sources: [
'googleapis/ajax/libs/jquery/1.7.1/',
'src/jquery.someplugin.js'
],
tests: [
'test/*-test.js'
]
};
```

Do you agree that this is something that Buster should support? I guess it's not a very common use case, as it makes you rely on network in your tests, but it's probably a feature more people than just me will think is great!