Here were the requirements:
- has to work in both an html page and the grunt build script, so that there's only one place where we're defining the source order. 
- a single drop in script for loading vjs source files. I want to avoid a complicated source loading process since it's used in multiple places.
- don't add anything to the video.js source files themselves

Could we make that happen with require?

I also had an idea for generating dependencies using the new docs generator, which could get around this. 

---
Steve Heffernan (mobile)

> On Oct 14, 2013, at 11:11 AM, David LaPalomento <notifications@github.com> wrote:
> 
> In Gruntfile.js:
> 
> > @@ -20,6 +20,13 @@ module.exports = function(grunt) {
> >    };
> >    version.majorMinor = version.major + '.' + version.minor;
> >  
> > +  // loading predefined source order from source-loader.js
> > +  // trust me, this is the easist way to do it so far
> > +  /*jshint undef:false, evil:true */
> > +  var blockSourceLoading = true;
> > +  var sourceFiles; // Needed to satisfy jshint
> > +  eval(grunt.file.read('./build/source-loader.js'));
> Have to ask... require('./build/source-loader.js') can't be coerced into achieving the same thing?
> 
> —
> Reply to this email directly or view it on GitHub.