graue/potsfyi

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/

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.

Fixed by this commit: 9cb1882

Except for JQuery (npm version isn't working for some reason) and Backbone.LocalStorage (not in npm). Close enough for now.