mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Many Plugin upgrades.
This commit is contained in:
parent
a644947119
commit
3f9c4100ef
10 changed files with 194 additions and 116 deletions
|
@ -23,6 +23,15 @@ class Plugin::Instance
|
|||
@metadata = metadata
|
||||
@path = path
|
||||
@assets = []
|
||||
|
||||
# Automatically include all ES6 JS files
|
||||
if @path
|
||||
dir = File.dirname(@path)
|
||||
Dir.glob("#{dir}/assets/javascripts/**/*.js.es6") do |f|
|
||||
relative = f.sub("#{dir}/assets/", "")
|
||||
register_asset(relative)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue