This is quite complex as it means that in production we have to build Ember CLI test files and allow them to be used by our Rails application. There is a fair bit of glue we can remove in the future once we move to Ember CLI completely.
11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
<%
|
|
Discourse.plugins.each do |p|
|
|
root_path = "#{File.dirname(p.path)}/test/javascripts"
|
|
|
|
to_glob = [root_path + '/**/**.es6']
|
|
to_glob << (root_path + '/**/**.js') if p.transpile_js
|
|
|
|
Dir.glob(to_glob) { |f| require_asset(f) }
|
|
end
|
|
%>
|