chemhack / libSBGN.js

A bio network format library
9 stars 3 forks source link

compile non-compressed version #14

Open matthiasbock opened 11 years ago

matthiasbock commented 11 years ago

Hi,

'ant compile' only got me an unreadable, compressed version of libSBGN.js. Is it possible to build a human readable version ?

Matthias

chemhack commented 11 years ago

'ant compile-whitespace-only' gives you uncompressed javascript bundle with whitespace removed only.

matthiasbock commented 11 years ago

Works. Thank you!

matthiasbock commented 11 years ago

Hm, with the non-compressed version I am getting an error.

I tried to open http://matthiasbock.github.io/BooleSim/ in Chromium, but I get screenshot

chemhack commented 11 years ago

It seems to be a problem of 'var COMPILED=false', you can try change it to true in uncompressed js and see if it works.

matthiasbock commented 11 years ago

I changed it to

var COMPILED = true;

but still the same problem...

chemhack commented 11 years ago

this is so weird. It seems to be a problem with closure library. Can you try 'ant compile-simple' and 'ant compile-advanced' see if the same problem happens?

matthiasbock commented 11 years ago

Using compiled-simple.js I get a different error: screenshot

matthiasbock commented 11 years ago

Using compiled-advanced, libSBGN.js shows no error, however an error occurs when importing the Demo network: screenshot

matthiasbock commented 11 years ago

That's really weird, now I can't even get it to work again with the 'ant compile' version. Maybe I accidentally broke something in BooleSim, I will try going back to a previous revision ...