Page 1 of 1

closure compiler + wym?

PostPosted: Wed Jun 02, 2010 9:58 pm
by coffeecup
since jquery uses googles closure compiler for minimization it would be nice to see also wym compile with it.

those regexp for path finding seem to mess up the compiler, i also fail minimizing wym when using whitespace_only as packing option.

Re: closure compiler + wym?

PostPosted: Thu Jun 03, 2010 8:42 pm
by mr_lundis
Hi!
I have no experience with Google's Closure Compiler so I don't think I'll be able to help. However, if you can figure out what's causing this I'd be happy to include a fix.

Cheers! ;)

Re: closure compiler + wym?

PostPosted: Tue Jun 08, 2010 6:16 pm
by mr_lundis
Okay, now I've tried this out, and you should be able to use Closure Complier just fine. It does throw some warnings though, for some JSDoc @param comments that are entered backwards but those doesn't seem to affect the final result.

I used the hosted compiler here:
http://closure-compiler.appspot.com/home

And these are my results using the "simple" mode:
http://closure-compiler.appspot.com/cod ... default.js

Original source (nightly):
http://files.wymeditor.org/wymeditor/tr ... meditor.js

Cheers! ;)