Skip to content

Commit

Permalink
Merge pull request #3380 from projectblacklight/dead-code
Browse files Browse the repository at this point in the history
Remove unused asset generator
  • Loading branch information
seanaery authored Jan 15, 2025
2 parents 67ad400 + cfbe1e8 commit 12c3190
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 66 deletions.
6 changes: 0 additions & 6 deletions app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@

<% if defined? Importmap %>
<%= javascript_importmap_tags %>
<% elsif defined? Propshaft %>
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
<% else %>
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
<%= javascript_include_tag "blacklight/blacklight", type: 'module' %>
<script type="module">
import githubAutoCompleteElement from 'https://cdn.skypack.dev/@github/auto-complete-element';
</script>
<% end %>

<%= csrf_meta_tags %>
Expand Down
58 changes: 0 additions & 58 deletions lib/generators/blacklight/assets/sprockets_generator.rb

This file was deleted.

4 changes: 2 additions & 2 deletions lib/generators/blacklight/assets_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def run_asset_pipeline_specific_generator
'blacklight:assets:importmap'
elsif defined?(Propshaft)
'blacklight:assets:propshaft'
elsif defined?(Sprockets)
'blacklight:assets:sprockets'
else
raise "Unsupported path"
end

generate generator, generated_options if generator
Expand Down

0 comments on commit 12c3190

Please sign in to comment.