有誰知道如何將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 IDE集成MYSQL
- 3. 集成自定義編譯器與Visual Studio IDE
- 4. Eclipse CDT不能與OpenCV 2.0集成Cygwin編譯器
- 5. 如何將新的語言和編譯器集成到Eclipse中
- 6. 如何爲Eclipse IDE設置Eclipse以外的eclipse Java編譯器
- 7. Eclipse CDT(C++ IDE)與Visual Studio 2013編譯器
- 8. Glassfish IDE集成
- 9. Maven與IDE集成
- 10. 如何將簽出的本地git項目與Eclipse IDE集成?
- 11. 將Eclipse與MySQL集成
- 12. 將IBM WAS7與eclipse集成
- 13. 將jprobe與eclipse集成?
- 14. 閉包編譯器跳過文件
- 15. 如何將FileMerge與Komodo 6 IDE集成?
- 16. 如何將Mercurial與PHPed IDE集成?
- 17. 在AngularJS中使用閉包編譯器
- 18. 將Google電子錢包與Google Apps腳本集成?
- 19. JIRA-Eclipse集成,將jira與eclipse-oepe-indigo集成的步驟
- 20. Java eclipse包編譯錯誤
- 21. 閉包編譯器default.js持續多久?
- 22. 免費ARM IDE |編譯器
- 23. Microsoft Visual C++ Build Tools編譯器與Eclipse
- 24. 將CKFinder與InnovaStudio WYSIWYG編輯器集成
- 25. 使用Eclipse CDT與VisualStudio的編譯器
- 26. 在eclipse中將Google plus與android集成時遇到錯誤
- 27. Tomcat與Eclipse集成
- 28. 集成Play與Eclipse
- 29. ClojureScript如何編譯閉包?
- 30. 谷歌封閉編譯器 - 雙編譯
對於被劫持的域名太糟糕了:( – 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