Soycode jsrefactor

This is a typescript->JavaScript refactor, also addressing these issues:
https://github.com/freedomjs/freedom-pgp-e2e/issues/9 (eliminate uproxy-lib dependency)
https://github.com/freedomjs/freedom-pgp-e2e/issues/10 (update to freedom 0.6)

Additionally the demo is now a general freedom app and not a chrome app. That said, it's actually failing in Firefox right now due to an end-to-end error:
"Module Failed" Object { isTrusted: true } freedom.js:1291
Error: Seed is too small. end-to-end.compiled.js:231

I still think it's worth merging as I know other people are interested in looking at crypto code and this is definitely a better starting point. I'll look into the Firefox issue but given that the error is happening on the end to end side the fix may not be in our codebase.
On Tue, Dec 9, 2014 at 12:48 PM, Will <notifications@github.com> wrote:

> In Gruntfile.js
> <https://github.com/freedomjs/freedom-pgp-e2e/pull/12#discussion-diff-21560917>
> :
>
> > +  ]);
> > +  grunt.registerTask('test', [
> > +    'build',
> > +    'karma'
> > +  ]);
> > +  grunt.registerTask('full', [
> > +    'jshint',
> > +    'build',
> > +    'karma:phantom',
> > +    'connect'
> > +  ]);
> > +  grunt.registerTask('default', [
> > +    'jshint',
> > +    'base',
> > +    'karma:phantom',
> > +    'connect'
>
> Noticed that after I commented [image: :smile:]. maybe a grunt rebuild or
> explicit grunt build to rebuild endtoend, while normal grunt just does
> the jslint / unit tests as it does at present.
>

Yeah I'm open to any approach, though I kinda like just requiring explicit
"grunt getEndToEnd" if that's what somebody wants, else having all the
other commands just assume that you'll copy the already built version. I
think the ambiguity with calling it "build" is that we're not really
building the freedom module but just the end-to-end dependency - really
aside from that, now that this is pure JavaScript there is no real building
but just copying things around (and we could of course add minification
etc.).

Anyway, lmk if you want further tweaks but I'm happy with it as it is, and
I imagine most users of this would prefer not to rebuild/get end-to-end
from scratch all the time.


> —
> Reply to this email directly or view it on GitHub
> <https://github.com/freedomjs/freedom-pgp-e2e/pull/12/files#r21560917>.
>