2015-04-03 77 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,如果你只是看,大多数答案都在那里。