facebook

Integration of Googles JavaScript Closure Compiler

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #304188 Reply

    Humppa
    Member

    Hi,

    in my mind the Google JavaScript Closure Compiler is very usefull and I would love to see it to be integrated in MyEclipse IDE.

    http://code.google.com/intl/de-DE/closure/compiler/

    Google provides it as an jar file, for offline use. But they also offer a web service and a web gui:
    http://closure-compiler.appspot.com/home
    http://code.google.com/intl/de-DE/closure/compiler/docs/gettingstarted_app.html

    What does it do?
    It optimizes and shrinks java script code.
    Here is some example code:

    
    function sayHumppa(name)
    {
        alert(name + " says" + " " + "humppa");
    }
    sayHumppa("Sepp");
    

    If you compile it using the ‘simple’ option it shrinks to:

    
    function sayHumppa(a){alert(a+" says humppa")}sayHumppa("Sepp");
    

    But if you compile it using the ‘advanced’ option the following code will be generated:

    alert("Sepp says humppa");

    It would be really great to see it being integrated into MyEclipse, so the Closure Compiler runs automatically on all *.js files when you deploy your web-project.
    Maybe an option to disable the closure compiler for Debuging would be also usefull then.

    Or is there a way to integrate the compiler manually?

    Regards
    Humppa

    #304219 Reply

    Loyal Water
    Member

    Humppa,
    Thank you for your feedback. This is a brilliant idea and I’m going to file an enhancement request right away.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Integration of Googles JavaScript Closure Compiler

You must be logged in to post in the forum log in