Hi, I want to make my own discourse plugins and what languages I need to know and what tools/programs/apps I need to do so. I appreciate it.
我刚刚开始,但这是我的“入门十项”建议,供您参考:
阅读:
您需要学习:
- 大量的 JavaScript(不妨看看 @mpj 的 Fun Fun Function 精彩且有趣的视频(谢谢!))
- 大量的 Ember 以及少量的 Ruby(从这里开始)
- Github 和 Git
- (当然还有 HTML/CSS!)
安装:
- Atom,并考虑使用优秀的 nuclide 插件,它便于远程文件树导航和编辑
- 使用 本指南 安装 Discourse 开发实例,最好在廉价的云服务器上,并建议安装 outlet locations 插件 以使界面更直观。
I appreciate it! What “kind” of JavaScript, like web or node.js?
ECMAScript. It’s used in both ‘places’.
Would I just make a new atom file named plugin.js and work on a plugin there?
No. There are no ‘.js’ files. JavaScript is mainly stored in ‘.js.es6’ files. Ruby in ‘.rb’ files. It’s more complex. Take a look at existing plugins for example file arrangement and content. You need to understand serialisation, Ember templates, the Router and the Model, View, Controller concept.
I would highly recommend you install a simple existing plugin of your choice and try modify it in some sensible way.
Dont skip on the reading.
I think it’s fair to say is a pretty steep learning curve because there are a lot of concepts to get to grips with, two languages, one framework and Discourse’s ‘way of doing things’ …