Skip to content

Commit b83cd00

Browse files
committed
Remove unused dependencies
1 parent ff467ab commit b83cd00

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ gem 'rails', '~> 6.1.7'
77
gem 'rails-i18n', '~> 6.0'
88
gem 'sass-rails', '>= 6'
99
gem 'importmap-rails', '~> 1.1'
10-
gem 'turbo-rails', '~> 1.3'
1110
gem 'jbuilder', '~> 2.7'
1211
gem 'bootsnap', '>= 1.4.4', require: false
1312
gem 'puma', '~> 6.0'
@@ -48,3 +47,4 @@ gem 'base32'
4847
gem 'sd_notify'
4948
gem 'net-http'
5049
gem 'bootstrap', '~> 5.1.3'
50+
gem 'jquery-rails'

Gemfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ GEM
110110
jbuilder (2.11.5)
111111
actionview (>= 5.0.0)
112112
activesupport (>= 5.0.0)
113+
jquery-rails (4.5.1)
114+
rails-dom-testing (>= 1, < 3)
115+
railties (>= 4.2.0)
116+
thor (>= 0.14, < 2.0)
113117
listen (3.8.0)
114118
rb-fsevent (~> 0.10, >= 0.10.3)
115119
rb-inotify (~> 0.9, >= 0.9.10)
@@ -233,10 +237,6 @@ GEM
233237
thor (1.2.1)
234238
tilt (2.0.11)
235239
timeout (0.3.1)
236-
turbo-rails (1.3.2)
237-
actionpack (>= 6.0.0)
238-
activejob (>= 6.0.0)
239-
railties (>= 6.0.0)
240240
tzinfo (2.0.5)
241241
concurrent-ruby (~> 1.0)
242242
uri (0.12.0)
@@ -275,6 +275,7 @@ DEPENDENCIES
275275
haml-rails (~> 2.0)
276276
importmap-rails (~> 1.1)
277277
jbuilder (~> 2.7)
278+
jquery-rails
278279
listen (~> 3.3)
279280
midi-smtp-server (~> 3.0)
280281
mysql2 (>= 0.5)
@@ -291,7 +292,6 @@ DEPENDENCIES
291292
simple_form
292293
spring
293294
sqlite3 (~> 1.4)
294-
turbo-rails (~> 1.3)
295295
tzinfo-data
296296
web-console (>= 4.1.0)
297297
webdrivers

app/javascript/application.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2-
3-
import Rails from "@rails/ujs"
4-
import * as ActiveStorage from "@rails/activestorage"
5-
import "@hotwired/turbo-rails"
6-
import "channels"
72
import "popper"
83
import "bootstrap"
9-
10-
Rails.start()
11-
ActiveStorage.start()

config/importmap.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Pin npm packages by running ./bin/importmap
22

33
pin "application", preload: true
4-
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js"
5-
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
6-
pin "bootstrap", to: "https://ga.jspm.io/npm:[email protected]/dist/js/bootstrap.esm.js"
7-
pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/[email protected]/lib/index.js"
4+
pin "popper", to: 'popper.js', preload: true
5+
pin "bootstrap", to: 'bootstrap.min.js', preload: true

0 commit comments

Comments
 (0)