2015-04-03 79 views
0

我對mozilla插件開發非常陌生。並且很難快速啓動。開發mozilla插件

我正在尋找一個基本的mozilla附加模板。

有了以下幾點:

live-reload : for any change in files, to automatically create new xpi and automatically install in firefox 
configuration : some constant values like version no, name etc, i can use in html files and in js files. (if i change any one should automatically update everywhere) 
debugging : if i add console.log to anywhere, should print on terminal or console of browser 
distributing : to automatically concat and minify the source code, and prepare xpi file for the same 

很好的例子,我可以採取的http://meanjs.org web開發

有什麼爲Firefox類似插件開發

回答

0

addon-sdk提供的API進行配置它的模塊系統可以用來聲明一次常量,它提供了一個tool for project setup,調試已經是built into the browser,concatting和minifying源是unne cessary,SDK有一個模塊系統,允許按需加載模塊,從而減少啓動開銷。

我強烈建議爆炸MDN,如果你只是看,大多數答案都在那裏。