aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-01-03 01:55:50 +0100
committerMax Magorsch <max@magorsch.de>2020-01-03 01:55:50 +0100
commit7de161a64e8199a1235d9c91981a68f99438cbf0 (patch)
treee82c97f8bb179f8c07c5178467457ded43ae2acb /Gemfile
parentFix the environment variables in .travis.docker.yml (diff)
downloadpackages-5-7de161a64e8199a1235d9c91981a68f99438cbf0.tar.gz
packages-5-7de161a64e8199a1235d9c91981a68f99438cbf0.tar.bz2
packages-5-7de161a64e8199a1235d9c91981a68f99438cbf0.zip
Migrate the project from sprockets to webpacker
The asset pipeline was introduced in Rails 3.1. However, since Rails 5.1 webpacker has been available, so that it's possible to use webpack. The project has been fully migrated to use webpacker for bundeling javascripts as well as stylesheets now. This way, sprockets has been completely replaced and removed from the project. Associated gems as jquery-rails have been removed as well. Accordingly all advanced webpack functionalities are available now. The bin/first-run file as well as the Dockerfiles have been adjusted to use webpacker instead of the asset pipeline. Please note: In order to use webpacker, yarn has to be installed on the target system. Please make sure that 'yarnpkg' is in your path. Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile17
1 files changed, 3 insertions, 14 deletions
diff --git a/Gemfile b/Gemfile
index db98594..6f5f7b0 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,20 +4,7 @@ source 'https://rubygems.org'
gem 'rails', '~> 6.0.0'
# Use mysql as the database for Active Record
# gem 'mysql2'
-# Use SCSS for stylesheets
-gem 'sassc-rails', '~> 2.0'
-# Use Uglifier as compressor for JavaScript assets
-gem 'uglifier', '>= 1.3.0'
-# Use CoffeeScript for .coffee assets and views
-# gem 'coffee-rails', '~> 4.1.0'
-# See https://github.com/rails/execjs#readme for more supported runtimes
-# gem 'therubyracer', platforms: :ruby
-gem 'sprockets', '~> 3.0'
-
-# Use jquery as the JavaScript library
-gem 'jquery-rails', '~> 4.3.5'
-# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
-gem 'turbolinks'
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
@@ -41,6 +28,8 @@ gem 'octicons_helper'
gem 'rails-controller-testing'
+gem 'webpacker', '~> 4.0.7'
+
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'