Remove 3rd-party JS libs from repo
Closed this issue · 3 comments
It would be nice not to have the JS dependencies like RequireJS, Backbone, JQuery etc. in the repo, but to have a script (makefile?) that either fetches them from the web, or copies the appropriate files out of a git submodule.
This could possibly be done by supporting a build tool like Grunt: http://gruntjs.com/
http://ajax.cdnjs.com/ajax/libs/require.js/2.1.1/require.min.js
http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js
http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
more generally, http://cdnjs.com/
These are what I use for js libraries.
Perhaps it's not what you're looking for, but if they're cached after initial lookup the load time should be unnoticeable
That actually gives me an idea: a small shell script could download the deps from CDNJS into a non-git-tracked directory. Easy, no extra build deps (except curl, but who doesn't have curl?) and once they're downloaded, the project would look just as it does now.
...They only have minified versions, though, which is not good for debugging. Let's not worry about this for now.