有誰知道如何將Google closure compiler與Eclipse IDE集成?我試圖做的事情是將Google閉包編譯器配置爲Eclipse IDE的外部工具。然後,我將能夠在IDE中運行閉包編譯器,並通過單擊來縮小我的Javascript文件。 有沒有人解決過這個問題呢?將Google閉包編譯器與Eclipse IDE集成?
17
A
回答
12
Rock Star Apps提供了一個鮮爲人知的插件。我剛剛寫了一篇關於它的博客文章:[已刪除,不再存在]。
經過一番谷歌搜索之後,我也發現了這個,但還沒有測試過它:https://github.com/greggian/Eclipse-Closure-Compiler。
更新:Rock Star Apps網站不再有效。如果我今天嘗試這樣做,我肯定會下載closure compiler jar,編寫一個ant腳本來運行它(類似下面的代碼),然後爲它創建一個項目生成器。
<target name="rebuild">
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="/opt/closure-compiler/compiler.jar"/>
<jscomp compilationLevel="simple" warning="quiet"
debug="false" output="js/all.closure.js">
<sources dir="js">
<file name="script1.js"/>
<file name="script2.js"/>
<file name="script3.js"/>
<file name="script4.js"/>
<file name="script5.js"/>
<file name="script6.js"/>
</sources>
</jscomp>
</target>
4
1
這podcast對如何關閉編譯器可能會融入IDE一些信息。但它在發佈之前已經發布。
1
您可能會感興趣於Closure構建工具http://plovr.com/。它動態地重新編譯JavaScript和Closure模板代碼。
4
嘗試這些Eclipse插件:
Eclipse插件爲Closure模板
Eclipse插件爲JavaScript與關閉編譯器和Closure庫
http://www.normalesup.org/~simonet/soft/index.en.html
一切正常!
相關問題
- 1. 如何將DynamicC編譯器(Rabbit Microcontroller/C)與Eclipse IDE集成
- 2. Eclipse與C++編譯器包
- 3. 將GCC編譯器添加到Eclipse IDE
- 4. 與Eclipse IDE集成MYSQL
- 5. 將Perl編輯器與My Eclipse集成
- 6. 將Phoenix編譯器框架與Eclipse集成爲一個JAVA類
- 7. 集成自定義編譯器與Visual Studio IDE
- 8. JProfiler 7.2.2 IDE集成錯誤與Eclipse 4.2
- 9. html5,angularJS與閉包編譯器和/或閉包庫
- 10. Eclipse CDT不能與OpenCV 2.0集成Cygwin編譯器
- 11. 如何將新的語言和編譯器集成到Eclipse中
- 12. 如何爲Eclipse IDE設置Eclipse以外的eclipse Java編譯器
- 13. Eclipse CDT(C++ IDE)與Visual Studio 2013編譯器
- 14. Glassfish IDE集成
- 15. Maven與IDE集成
- 16. 如何在Eclipse IDE中將編譯器從C更改爲C++?
- 17. 如何將簽出的本地git項目與Eclipse IDE集成?
- 18. 如何在Eclipse IDE中關閉Java的編譯時錯誤
- 19. 將IBM WAS7與eclipse集成
- 20. 將SOAP UI與Eclipse集成
- 21. 將jprobe與eclipse集成?
- 22. 將Eclipse與MySQL集成
- 23. 將CoffeeScript與Eclipse集成?
- 24. Eclipse JDT編譯器說方法未定義,但Eclipse IDE不
- 25. 加速google關閉編譯器jar
- 26. Play 2.2 google關閉編譯器opiton nonStandardJsDocs
- 27. 閉包編譯器跳過文件
- 28. 避免externs中的編譯器錯誤(閉包編譯器)
- 29. 將Google Plus與Rails集成
- 30. 如何爲google閉包編譯器聲明全局變量?
對於被劫持的域名太糟糕了:( – 2012-03-21 20:09:19
由於被劫持的域名無法找到Rock Star Apps,但你仍然可以手動下載並安裝zip。我只是按照這篇文章的說明操作:http: //blog.avirtualhome.com/rockstarapps-for-eclipse/ – firepol 2012-11-16 08:48:39
你應該正確更新你的帖子以刪除不良網址,它現在主持一個網站試圖誘騙人們下載可疑的「FlashPlayer」更新... – uchuugaka 2017-04-01 22:50:55