Skip to content

Commit

Permalink
Add sprockets-rails gem and update from 3 to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Feb 22, 2024
1 parent a200f3f commit ef2098e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '7.0.8'

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem 'sprockets-rails', require: 'sprockets/railtie'

gem 'sassc-rails'
gem 'terser'
# See https://github.com/rails/execjs#readme for more supported runtimes
Expand Down
15 changes: 8 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ GEM
chart-js-rails (0.1.7)
railties (> 3.1)
coderay (1.1.3)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
crass (1.0.6)
cube-ruby (0.0.3)
daemons (1.4.1)
Expand Down Expand Up @@ -202,7 +202,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2023.1003)
mini_mime (1.1.5)
minitest (5.20.0)
minitest (5.21.2)
multi_json (1.15.0)
multipart-post (2.3.0)
mysql2 (0.5.5)
Expand All @@ -222,11 +222,11 @@ GEM
newrelic_rpm (9.6.0)
base64
nio4r (2.6.1)
nokogiri (1.15.5-arm64-darwin)
nokogiri (1.16.0-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-darwin)
nokogiri (1.16.0-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-linux)
nokogiri (1.16.0-x86_64-linux)
racc (~> 1.4)
oj (3.16.1)
open_uri_redirections (0.2.1)
Expand Down Expand Up @@ -338,9 +338,9 @@ GEM
select2-rails (4.0.13)
sexp_processor (4.17.0)
spawnling (2.1.5)
sprockets (3.7.2)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
Expand Down Expand Up @@ -421,6 +421,7 @@ DEPENDENCIES
rubocop
sassc-rails
select2-rails
sprockets-rails
stackprof
terser
thin
Expand Down
3 changes: 3 additions & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
1 change: 0 additions & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
Rails.application.config.assets.precompile += %w( *.png *.jpg *.jpeg *.gif bp_annotator.js bp_annotatorplus.js vendor.js )

0 comments on commit ef2098e

Please sign in to comment.