kewisch/ical.js — pull request #10 by lightsofapollo (2012-07-25 22:54:21+00:00)
Title: Restructure

This PR lands some bug fixes and a major folder restructuring.

* restructures folders to follow a nodejs inspired convention.

* creates a top-level Makefile

* removes xpcom wrappers ( I can put them back I removed these because I probably broke them and the tests are not yet hooked up to support them. I propose getting the xpcom tests setup next week and verifying that its working along the way by running the test suite vs xpcom)

* Adds new mocha/test-agent/chai based tests. You need nodejs to setup the test environment. I can make this easier by bundling all the code in the repo but it will add quite a bit of history. Its a trade off let me know what you think.

* Re-design top level api to only use `ICAL.parse` `ICAL.stringify`following the JSON's conventions.

* ICAL.icalcomponent objects can now be JSON.stringify'ed directly.

* blank lines no longer throw parser errors.

* fixes stack trace in parser errors in browser environments (we probably need a different solution in xpcom, I have some helpful stuff for this elsewhere).