This is a dev feature for our beloved plugin authors.
With this commit https://github.com/discourse/discourse/commit/ef36fdfb64a06b91503b5ad270daebda96d00201 you can now use rails generators to create plugins:
rails g plugin --help
rails g plugin DiscourseRacoon
This will create a complete discourse plugin skeleton in your plugins directory:
rails g plugin DiscourseRacoon --no-scheduled-job
create plugins/discourse-racoon/README.md
create plugins/discourse-racoon/LICENSE
create plugins/discourse-racoon/plugin.rb
create plugins/discourse-racoon/assets/stylesheets/common/discourse-racoon.scss
create plugins/discourse-racoon/assets/javascripts/initializers/discourse-racoon.es6
It’s currently doing very few things #pr-welcome on this if you see things to improve or options to add.
@angus @joebuhlig Happy to hear your thoughts on this.
Thanks @david for pushing me to write this as a generator.