mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 18:03:40 +08:00
d83f99fc2e
Fixes bugs, simplifies code, more default files. General idea, more is more here as it's easier to just delete things than reading and passing all the options.
20 lines
620 B
Plaintext
20 lines
620 B
Plaintext
# name: <%= name %>
|
|
# about: <%= @about %>
|
|
# version: 0.1
|
|
# authors: <%= @github_username %>
|
|
# url: https://github.com/<%= @github_username %>
|
|
|
|
register_asset "stylesheets/common/<%= dasherized_name %>.scss"
|
|
register_asset "stylesheets/desktop/<%= dasherized_name %>.scss"
|
|
register_asset "stylesheets/mobile/<%= dasherized_name %>.scss"
|
|
|
|
enabled_site_setting :<%= underscored_name %>_enabled
|
|
|
|
PLUGIN_NAME ||= "<%= classified_name %>".freeze
|
|
|
|
load File.expand_path('../lib/<%= dasherized_name %>/engine.rb', __FILE__)
|
|
|
|
after_initialize do
|
|
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
|
|
end
|