snowpacker 0.0.4.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +3 -0
  3. data/.dockerignore +22 -0
  4. data/.github/workflows/build.yml +20 -0
  5. data/.gitignore +65 -0
  6. data/CHANGELOG.md +28 -0
  7. data/Dockerfile +38 -0
  8. data/Gemfile +8 -0
  9. data/Gemfile.lock +199 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +156 -0
  12. data/Rakefile +32 -0
  13. data/bin/console +15 -0
  14. data/bin/setup +8 -0
  15. data/docker-compose.yml +17 -0
  16. data/docker.env +8 -0
  17. data/examples/rails-without-webpack/.gitignore +34 -0
  18. data/examples/rails-without-webpack/.ruby-version +1 -0
  19. data/examples/rails-without-webpack/Gemfile +33 -0
  20. data/examples/rails-without-webpack/Gemfile.lock +225 -0
  21. data/examples/rails-without-webpack/README.md +24 -0
  22. data/examples/rails-without-webpack/Rakefile +6 -0
  23. data/examples/rails-without-webpack/app/assets/config/manifest.js +2 -0
  24. data/examples/rails-without-webpack/app/assets/images/.keep +0 -0
  25. data/examples/rails-without-webpack/app/assets/stylesheets/application.css +15 -0
  26. data/examples/rails-without-webpack/app/assets/stylesheets/static_pages.scss +3 -0
  27. data/examples/rails-without-webpack/app/channels/application_cable/channel.rb +4 -0
  28. data/examples/rails-without-webpack/app/channels/application_cable/connection.rb +4 -0
  29. data/examples/rails-without-webpack/app/controllers/application_controller.rb +2 -0
  30. data/examples/rails-without-webpack/app/controllers/concerns/.keep +0 -0
  31. data/examples/rails-without-webpack/app/controllers/static_pages_controller.rb +4 -0
  32. data/examples/rails-without-webpack/app/helpers/application_helper.rb +2 -0
  33. data/examples/rails-without-webpack/app/helpers/static_pages_helper.rb +2 -0
  34. data/examples/rails-without-webpack/app/javascript/channels/consumer.js +6 -0
  35. data/examples/rails-without-webpack/app/javascript/channels/index.js +6 -0
  36. data/examples/rails-without-webpack/app/javascript/packs/application.js +17 -0
  37. data/examples/rails-without-webpack/app/javascript/stylesheets/index.css +3 -0
  38. data/examples/rails-without-webpack/app/jobs/application_job.rb +7 -0
  39. data/examples/rails-without-webpack/app/mailers/application_mailer.rb +4 -0
  40. data/examples/rails-without-webpack/app/models/application_record.rb +3 -0
  41. data/examples/rails-without-webpack/app/models/concerns/.keep +0 -0
  42. data/examples/rails-without-webpack/app/views/layouts/application.html.erb +16 -0
  43. data/examples/rails-without-webpack/app/views/layouts/mailer.html.erb +13 -0
  44. data/examples/rails-without-webpack/app/views/layouts/mailer.text.erb +1 -0
  45. data/examples/rails-without-webpack/app/views/static_pages/index.html.erb +2 -0
  46. data/examples/rails-without-webpack/bin/bundle +114 -0
  47. data/examples/rails-without-webpack/bin/rails +9 -0
  48. data/examples/rails-without-webpack/bin/rake +9 -0
  49. data/examples/rails-without-webpack/bin/setup +36 -0
  50. data/examples/rails-without-webpack/bin/spring +17 -0
  51. data/examples/rails-without-webpack/bin/yarn +9 -0
  52. data/examples/rails-without-webpack/config.ru +5 -0
  53. data/examples/rails-without-webpack/config/application.rb +20 -0
  54. data/examples/rails-without-webpack/config/boot.rb +4 -0
  55. data/examples/rails-without-webpack/config/cable.yml +10 -0
  56. data/examples/rails-without-webpack/config/credentials.yml.enc +1 -0
  57. data/examples/rails-without-webpack/config/database.yml +25 -0
  58. data/examples/rails-without-webpack/config/environment.rb +5 -0
  59. data/examples/rails-without-webpack/config/environments/development.rb +62 -0
  60. data/examples/rails-without-webpack/config/environments/production.rb +112 -0
  61. data/examples/rails-without-webpack/config/environments/test.rb +49 -0
  62. data/examples/rails-without-webpack/config/initializers/application_controller_renderer.rb +8 -0
  63. data/examples/rails-without-webpack/config/initializers/assets.rb +14 -0
  64. data/examples/rails-without-webpack/config/initializers/backtrace_silencers.rb +7 -0
  65. data/examples/rails-without-webpack/config/initializers/content_security_policy.rb +31 -0
  66. data/examples/rails-without-webpack/config/initializers/cookies_serializer.rb +5 -0
  67. data/examples/rails-without-webpack/config/initializers/filter_parameter_logging.rb +4 -0
  68. data/examples/rails-without-webpack/config/initializers/inflections.rb +16 -0
  69. data/examples/rails-without-webpack/config/initializers/mime_types.rb +4 -0
  70. data/examples/rails-without-webpack/config/initializers/snowpacker.rb +19 -0
  71. data/examples/rails-without-webpack/config/initializers/wrap_parameters.rb +14 -0
  72. data/examples/rails-without-webpack/config/locales/en.yml +33 -0
  73. data/examples/rails-without-webpack/config/puma.rb +38 -0
  74. data/examples/rails-without-webpack/config/routes.rb +4 -0
  75. data/examples/rails-without-webpack/config/snowpacker/.browserslistrc +1 -0
  76. data/examples/rails-without-webpack/config/snowpacker/babel.config.js +76 -0
  77. data/examples/rails-without-webpack/config/snowpacker/postcss.config.js +12 -0
  78. data/examples/rails-without-webpack/config/snowpacker/snowpack.config.js +42 -0
  79. data/examples/rails-without-webpack/config/spring.rb +6 -0
  80. data/examples/rails-without-webpack/config/storage.yml +34 -0
  81. data/examples/rails-without-webpack/db/seeds.rb +7 -0
  82. data/examples/rails-without-webpack/lib/assets/.keep +0 -0
  83. data/examples/rails-without-webpack/lib/tasks/.keep +0 -0
  84. data/examples/rails-without-webpack/package.json +33 -0
  85. data/examples/rails-without-webpack/storage/.keep +0 -0
  86. data/examples/rails-without-webpack/test/application_system_test_case.rb +5 -0
  87. data/examples/rails-without-webpack/test/channels/application_cable/connection_test.rb +11 -0
  88. data/examples/rails-without-webpack/test/controllers/.keep +0 -0
  89. data/examples/rails-without-webpack/test/controllers/static_pages_controller_test.rb +8 -0
  90. data/examples/rails-without-webpack/test/fixtures/.keep +0 -0
  91. data/examples/rails-without-webpack/test/fixtures/files/.keep +0 -0
  92. data/examples/rails-without-webpack/test/helpers/.keep +0 -0
  93. data/examples/rails-without-webpack/test/integration/.keep +0 -0
  94. data/examples/rails-without-webpack/test/mailers/.keep +0 -0
  95. data/examples/rails-without-webpack/test/models/.keep +0 -0
  96. data/examples/rails-without-webpack/test/system/.keep +0 -0
  97. data/examples/rails-without-webpack/test/test_helper.rb +13 -0
  98. data/examples/rails-without-webpack/tmp/.keep +0 -0
  99. data/examples/rails-without-webpack/tmp/pids/.keep +0 -0
  100. data/examples/rails-without-webpack/vendor/.keep +0 -0
  101. data/examples/rails-without-webpack/yarn.lock +4254 -0
  102. data/lib/snowpacker.rb +24 -0
  103. data/lib/snowpacker/configuration.rb +19 -0
  104. data/lib/snowpacker/engine.rb +9 -0
  105. data/lib/snowpacker/env.rb +23 -0
  106. data/lib/snowpacker/runner.rb +51 -0
  107. data/lib/snowpacker/snowpacker_generator.rb +58 -0
  108. data/lib/snowpacker/snowpacker_proxy.rb +48 -0
  109. data/lib/snowpacker/templates/babel.config.js +76 -0
  110. data/lib/snowpacker/templates/postcss.config.js +12 -0
  111. data/lib/snowpacker/templates/snowpack.config.js +42 -0
  112. data/lib/snowpacker/templates/snowpacker.rb +19 -0
  113. data/lib/snowpacker/version.rb +5 -0
  114. data/lib/tasks/snowpacker_tasks.rake +30 -0
  115. data/snowpacker.gemspec +45 -0
  116. data/yarn.lock +6211 -0
  117. metadata +299 -0
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Connection < ActionCable::Connection::Base
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class StaticPagesController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module StaticPagesHelper
2
+ end
@@ -0,0 +1,6 @@
1
+ // Action Cable provides the framework to deal with WebSockets in Rails.
2
+ // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
+
4
+ // import { createConsumer } from "@rails/actioncable"
5
+
6
+ // export default createConsumer()
@@ -0,0 +1,6 @@
1
+ // Load all the channels within this directory and all subdirectories.
2
+ // Channel files must be named *_channel.js.
3
+
4
+ // WEbpack only
5
+ // const channels = require.context('.', true, /_channel\.js$/)
6
+ // channels.keys().forEach(channels)
@@ -0,0 +1,17 @@
1
+ // Webpack
2
+ // require("@rails/ujs").start()
3
+ // require("turbolinks").start()
4
+ // require("@rails/activestorage").start()
5
+ // require("channels")
6
+
7
+ // Snowpack https://www.skypack.dev/ for packages
8
+ import "https://cdn.skypack.dev/@rails/ujs" // Autostarts
9
+ import Turbolinks from "https://cdn.skypack.dev/turbolinks"
10
+ import ActiveStorage from "https://cdn.skypack.dev/@rails/activestorage"
11
+ // import "../channels"
12
+
13
+ Turbolinks.start()
14
+ ActiveStorage.start()
15
+
16
+ console.log("Hello from snowpacker")
17
+
@@ -0,0 +1,3 @@
1
+ body {
2
+ background: blue;
3
+ }
@@ -0,0 +1,7 @@
1
+ class ApplicationJob < ActiveJob::Base
2
+ # Automatically retry jobs that encountered a deadlock
3
+ # retry_on ActiveRecord::Deadlocked
4
+
5
+ # Most jobs are safe to ignore if the underlying records are no longer available
6
+ # discard_on ActiveJob::DeserializationError
7
+ end
@@ -0,0 +1,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ default from: "from@example.com"
3
+ layout "mailer"
4
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RailsWithoutWebpack</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag '/snowpacks/stylesheets/index', media: 'all' %>
9
+ <%= javascript_include_tag '/snowpacks/packs/application', type: "module" %>
10
+ <script>window.HMR_WEBSOCKET_URL = "ws://localhost:3000"</script>
11
+ </head>
12
+
13
+ <body>
14
+ <%= yield %>
15
+ </body>
16
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1,2 @@
1
+ <h1>StaticPages#index</h1>
2
+ <p>Find me in app/views/static_pages/index.html.erb</p>
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new {
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||=
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version
67
+ end
68
+
69
+ def bundler_requirement
70
+ return "#{Gem::Requirement.default}.a" unless bundler_version
71
+
72
+ bundler_gem_version = Gem::Version.new(bundler_version)
73
+
74
+ requirement = bundler_gem_version.approximate_recommendation
75
+
76
+ return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77
+
78
+ requirement += ".a" if bundler_gem_version.prerelease?
79
+
80
+ requirement
81
+ end
82
+
83
+ def load_bundler!
84
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
85
+
86
+ activate_bundler
87
+ end
88
+
89
+ def activate_bundler
90
+ gem_error = activation_error_handling {
91
+ gem "bundler", bundler_requirement
92
+ }
93
+ return if gem_error.nil?
94
+ require_error = activation_error_handling {
95
+ require "bundler/version"
96
+ }
97
+ return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
+ warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99
+ exit 42
100
+ end
101
+
102
+ def activation_error_handling
103
+ yield
104
+ nil
105
+ rescue StandardError, LoadError => e
106
+ e
107
+ end
108
+ }
109
+
110
+ m.load_bundler!
111
+
112
+ if m.invoked_as_script?
113
+ load Gem.bin_path("bundler", "bundle")
114
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError => e
5
+ raise unless e.message.include?("spring")
6
+ end
7
+ APP_PATH = File.expand_path("../config/application", __dir__)
8
+ require_relative "../config/boot"
9
+ require "rails/commands"
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError => e
5
+ raise unless e.message.include?("spring")
6
+ end
7
+ require_relative "../config/boot"
8
+ require "rake"
9
+ Rake.application.run
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+ require "fileutils"
3
+
4
+ # path to your application root.
5
+ APP_ROOT = File.expand_path("..", __dir__)
6
+
7
+ def system!(*args)
8
+ system(*args) || abort("\n== Command #{args} failed ==")
9
+ end
10
+
11
+ FileUtils.chdir APP_ROOT do
12
+ # This script is a way to setup or update your development environment automatically.
13
+ # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
14
+ # Add necessary setup steps to this file.
15
+
16
+ puts "== Installing dependencies =="
17
+ system! "gem install bundler --conservative"
18
+ system("bundle check") || system!("bundle install")
19
+
20
+ # Install JavaScript dependencies
21
+ # system('bin/yarn')
22
+
23
+ # puts "\n== Copying sample files =="
24
+ # unless File.exist?('config/database.yml')
25
+ # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
26
+ # end
27
+
28
+ puts "\n== Preparing database =="
29
+ system! "bin/rails db:prepare"
30
+
31
+ puts "\n== Removing old logs and tempfiles =="
32
+ system! "bin/rails log:clear tmp:clear"
33
+
34
+ puts "\n== Restarting application server =="
35
+ system! "bin/rails restart"
36
+ end
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This file loads Spring without using Bundler, in order to be fast.
4
+ # It gets overwritten when you run the `spring binstub` command.
5
+
6
+ unless defined?(Spring)
7
+ require "rubygems"
8
+ require "bundler"
9
+
10
+ lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11
+ spring = lockfile.specs.detect { |spec| spec.name == "spring" }
12
+ if spring
13
+ Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14
+ gem "spring", spring.version
15
+ require "spring/binstub"
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path("..", __dir__)
3
+ Dir.chdir(APP_ROOT) do
4
+ exec "yarnpkg", *ARGV
5
+ rescue Errno::ENOENT
6
+ warn "Yarn executable was not detected in the system."
7
+ warn "Download Yarn at https://yarnpkg.com/en/docs/install"
8
+ exit 1
9
+ end
@@ -0,0 +1,5 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative "config/environment"
4
+
5
+ run Rails.application
@@ -0,0 +1,20 @@
1
+ require_relative "boot"
2
+
3
+ require "rails/all"
4
+
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+
9
+ module RailsWithoutWebpack
10
+ class Application < Rails::Application
11
+ # Initialize configuration defaults for originally generated Rails version.
12
+ config.load_defaults 6.0
13
+
14
+ # Settings in config/environments/* take precedence over those specified here.
15
+ # Application configuration can go into files in config/initializers
16
+ # -- all .rb files in that directory are automatically loaded after loading
17
+ # the framework and any gems in your application.
18
+
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
+
3
+ require "bundler/setup" # Set up gems listed in the Gemfile.
4
+ require "bootsnap/setup" # Speed up boot time by caching expensive operations.
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: test
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: rails_without_webpack_production
@@ -0,0 +1 @@
1
+ NwaJV9ajAOn3cMLaYbTHTHxUrpQb5kteiJnom96mV9Aj1jc2HTSIG8zICpa3Ky+wCaen9DN3rhMUJoTlKeVHPo3SwX8GhJNWCEsHGeyYdFdv9x47rM1F1831SWvWA7uL2ZSs/fK5OoKsS3dH4vF4HC++DMMD6JjrBxqQlTmJ3e4BAqZkKpeBU67ooblJPXE4lo65VRux4WoBjmNW70LsKjeQMqeOnUW8fVAoOuJGICnKlrd02d5fvcBbdQ3i+ZK8xPFH91k2bIIG8MVcuDuN5OUFeaTxzwG6VW9kl2tG05sxw2jhwgpD9BdTNz26Z7MLHsLlPqm6j527z0WMsMGRv/mKMjMRVWzF+9btjy0mMTVZDIYf1WcLAbGjWMvLmffSIaPXY9w+5DTr7RiSgFR6WGWpug+8KA94X1Yb--8zcOfCoua1sMSLAd--dyX6nFLDGJidOgj84TmX1w==
@@ -0,0 +1,25 @@
1
+ # SQLite. Versions 3.8.0 and up are supported.
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative "application"
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,62 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ # Run rails dev:cache to toggle caching.
17
+ if Rails.root.join("tmp", "caching-dev.txt").exist?
18
+ config.action_controller.perform_caching = true
19
+ config.action_controller.enable_fragment_cache_logging = true
20
+
21
+ config.cache_store = :memory_store
22
+ config.public_file_server.headers = {
23
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
24
+ }
25
+ else
26
+ config.action_controller.perform_caching = false
27
+
28
+ config.cache_store = :null_store
29
+ end
30
+
31
+ # Store uploaded files on the local file system (see config/storage.yml for options).
32
+ config.active_storage.service = :local
33
+
34
+ # Don't care if the mailer can't send.
35
+ config.action_mailer.raise_delivery_errors = false
36
+
37
+ config.action_mailer.perform_caching = false
38
+
39
+ # Print deprecation notices to the Rails logger.
40
+ config.active_support.deprecation = :log
41
+
42
+ # Raise an error on page load if there are pending migrations.
43
+ config.active_record.migration_error = :page_load
44
+
45
+ # Highlight code that triggered database queries in logs.
46
+ config.active_record.verbose_query_logs = true
47
+
48
+ # Debug mode disables concatenation and preprocessing of assets.
49
+ # This option may cause significant delays in view rendering with a large
50
+ # number of complex assets.
51
+ config.assets.debug = true
52
+
53
+ # Suppress logger output for asset requests.
54
+ config.assets.quiet = true
55
+
56
+ # Raises error for missing translations.
57
+ # config.action_view.raise_on_missing_translations = true
58
+
59
+ # Use an evented file watcher to asynchronously detect changes in source code,
60
+ # routes, locales, etc. This feature depends on the listen gem.
61
+ config.file_watcher = ActiveSupport::EventedFileUpdateChecker
62
+ end