Skip to content

Commit 7712622

Browse files
committed
Delete app/assets/javascripts
Also remove unused dependencies.
1 parent 1a4e049 commit 7712622

File tree

7 files changed

+1
-41
lines changed

7 files changed

+1
-41
lines changed

Gemfile

-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ gem 'sqlite3'
1111
gem 'puma', '~> 3.11'
1212
# Use SCSS for stylesheets
1313
gem 'sass-rails', '~> 5.0'
14-
# Use Uglifier as compressor for JavaScript assets
15-
gem 'uglifier', '>= 1.3.0'
1614
# See https://github.com/rails/execjs#readme for more supported runtimes
1715
# gem 'mini_racer', platforms: :ruby
1816

19-
# Use CoffeeScript for .coffee assets and views
20-
gem 'coffee-rails', '~> 4.2'
2117
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
2218
gem 'turbolinks', '~> 5'
2319
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
@@ -36,8 +32,6 @@ gem 'jbuilder', '~> 2.5'
3632
# Reduces boot times through caching; required in config/boot.rb
3733
gem 'bootsnap', '>= 1.1.0', require: false
3834

39-
gem 'jquery-rails'
40-
4135
gem 'webpacker', '~> 3.5'
4236

4337
group :development, :test do

Gemfile.lock

-17
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,9 @@ GEM
6565
chromedriver-helper (2.1.0)
6666
archive-zip (~> 0.10)
6767
nokogiri (~> 1.8)
68-
coffee-rails (4.2.2)
69-
coffee-script (>= 2.2.0)
70-
railties (>= 4.0.0)
71-
coffee-script (2.4.1)
72-
coffee-script-source
73-
execjs
74-
coffee-script-source (1.12.2)
7568
concurrent-ruby (1.1.4)
7669
crass (1.0.4)
7770
erubi (1.8.0)
78-
execjs (2.7.0)
7971
ffi (1.10.0)
8072
globalid (0.4.2)
8173
activesupport (>= 4.2.0)
@@ -85,10 +77,6 @@ GEM
8577
jbuilder (2.8.0)
8678
activesupport (>= 4.2.0)
8779
multi_json (>= 1.2)
88-
jquery-rails (4.3.3)
89-
rails-dom-testing (>= 1, < 3)
90-
railties (>= 4.2.0)
91-
thor (>= 0.14, < 2.0)
9280
listen (3.1.5)
9381
rb-fsevent (~> 0.9, >= 0.9.4)
9482
rb-inotify (~> 0.9, >= 0.9.7)
@@ -183,8 +171,6 @@ GEM
183171
turbolinks-source (5.2.0)
184172
tzinfo (1.2.5)
185173
thread_safe (~> 0.1)
186-
uglifier (4.1.20)
187-
execjs (>= 0.3.0, < 3)
188174
web-console (3.7.0)
189175
actionview (>= 5.0)
190176
activemodel (>= 5.0)
@@ -208,9 +194,7 @@ DEPENDENCIES
208194
byebug
209195
capybara (>= 2.15)
210196
chromedriver-helper
211-
coffee-rails (~> 4.2)
212197
jbuilder (~> 2.5)
213-
jquery-rails
214198
listen (>= 3.0.5, < 3.2)
215199
puma (~> 3.11)
216200
rails (~> 5.2.2)
@@ -221,7 +205,6 @@ DEPENDENCIES
221205
sqlite3
222206
turbolinks (~> 5)
223207
tzinfo-data
224-
uglifier (>= 1.3.0)
225208
web-console (>= 3.3.0)
226209
webpacker (~> 3.5)
227210

app/assets/config/manifest.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
//= link_tree ../images
2-
//= link_directory ../javascripts .js
32
//= link_directory ../stylesheets .css

app/assets/javascripts/application.js

-14
This file was deleted.

app/assets/javascripts/channels/.keep

Whitespace-only changes.

app/views/layouts/application.html.erb

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<%= csp_meta_tag %>
77

88
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
9-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
109
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
1110
</head>
1211

config/environments/production.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
# Apache or NGINX already handles this.
2525
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2626

27-
# Compress JavaScripts and CSS.
28-
config.assets.js_compressor = :uglifier
27+
# Compress CSS.
2928
# config.assets.css_compressor = :sass
3029

3130
# Do not fallback to assets pipeline if a precompiled asset is missed.

0 commit comments

Comments
 (0)