Skip to content

Commit

Permalink
bye webpacker
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Jul 30, 2023
1 parent 26b530f commit c97f595
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 7,668 deletions.
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
sudo apt-get -yqq install libsqlite3-dev
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rails webpacker:install
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ gem 'rails', '~> 7.0'
gem 'sqlite3'
# Use Puma as the app server
gem 'puma'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker'
# Use asset pipeline
gem "sprockets-rails"
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
Expand Down
17 changes: 8 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ GEM
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.7)
rack-proxy (0.7.6)
rack
rack-test (2.1.0)
rack (>= 1.3)
rails (7.0.6)
Expand Down Expand Up @@ -177,7 +175,6 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.0.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand All @@ -189,6 +186,13 @@ GEM
spring-watcher-listen (2.1.0)
listen (>= 2.7, < 4.0)
spring (>= 4)
sprockets (4.2.0)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.6.3)
mini_portile2 (~> 2.8.0)
thor (1.2.2)
Expand All @@ -207,11 +211,6 @@ GEM
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0)
webpacker (5.4.4)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
railties (>= 5.2)
semantic_range (>= 2.3.0)
websocket (1.2.9)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand All @@ -237,12 +236,12 @@ DEPENDENCIES
simplecov-lcov
spring
spring-watcher-listen
sprockets-rails
sqlite3
turbolinks
tzinfo-data
web-console
webdrivers
webpacker

RUBY VERSION
ruby 3.2.2p53
Expand Down
3 changes: 0 additions & 3 deletions app/assets/stylesheets/home.scss

This file was deleted.

3 changes: 3 additions & 0 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "controllers"
17 changes: 0 additions & 17 deletions app/javascript/packs/application.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%= csp_meta_tag %>

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= javascript_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<body>
Expand Down
82 changes: 0 additions & 82 deletions babel.config.js

This file was deleted.

18 changes: 0 additions & 18 deletions bin/webpack

This file was deleted.

18 changes: 0 additions & 18 deletions bin/webpack-dev-server

This file was deleted.

1 change: 1 addition & 0 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rails.application.config.assets.version = "1.0"
5 changes: 0 additions & 5 deletions config/webpack/development.js

This file was deleted.

3 changes: 0 additions & 3 deletions config/webpack/environment.js

This file was deleted.

5 changes: 0 additions & 5 deletions config/webpack/production.js

This file was deleted.

5 changes: 0 additions & 5 deletions config/webpack/test.js

This file was deleted.

92 changes: 0 additions & 92 deletions config/webpacker.yml

This file was deleted.

17 changes: 0 additions & 17 deletions package.json

This file was deleted.

12 changes: 0 additions & 12 deletions postcss.config.js

This file was deleted.

3 changes: 1 addition & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

ENV['RAILS_ENV'] ||= 'test'
require 'mocha/minitest'
require 'rails/test_help'
require_relative '../config/environment'

require 'rails/test_help'
class ActiveSupport::TestCase
# Run tests in parallel with specified workers
# parallelize(workers: :number_of_processors)
Expand Down
Loading

0 comments on commit c97f595

Please sign in to comment.