segmentio/analytics.js — pull request #18 by shtylman (2012-12-14 05:24:55+00:00)
Title: separate out provider logic into files

The files are put back together with "make dist". The result is easier to maintain code and a smaller minified version. Changed to use google closure api to minify vs uglifyjs. Uglifyjs can still be used and does produce a smaller version than before with the new dist/analytics.js file.

The providers.html test passes. The analytics.html test doesn't pass and it was not clear to me why. I believe it can be made to pass very easily.

I realize this is a lot of changes, but I hope you guys think about how it affects code clarity. Anyhow, even if you don't take the changes, cool project ;)

* Changes can be tracked easier on a per provider basis.
* fix trailing comma with intercom
* update makefile to use google closure compiler to build
* built files go into dist folder
* update tests to use built version