1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Migrated from Sprockets to Propshaft.

This commit is contained in:
Your Name
2025-05-16 17:14:05 -04:00
parent 5296b71bb9
commit 0326d87261
124 changed files with 8796 additions and 35841 deletions

View File

@@ -44,7 +44,7 @@ module Wrestling
# Restored custom settings from original application.rb
# gzip assets
config.middleware.use Rack::Deflater
# config.middleware.use Rack::Deflater # Temporarily commented out for debugging asset 404s
config.active_job.queue_adapter = :solid_queue

View File

@@ -96,4 +96,7 @@ Rails.application.configure do
# Dump the schema after migrations
config.active_record.dump_schema_after_migration = true
# Nobuild in development
config.assets.build_assets = false
end

24
config/importmap.rb Normal file
View File

@@ -0,0 +1,24 @@
# Pin npm packages by running ./bin/importmap
pin "application", preload: true # Preloads app/javascript/application.js
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
pin "@rails/actioncable", to: "actioncable.esm.js" # For Action Cable
# Pin jQuery. jquery-rails should make "jquery.js" or "jquery.min.js" available.
# If this doesn't work, you might need to copy jquery.js/jquery.min.js to vendor/javascript
# and pin it directly, e.g., pin "jquery", to: "jquery.min.js"
pin "jquery", to: "jquery.js"
# Pin Bootstrap and DataTables from vendor/assets/javascripts/
pin "bootstrap", to: "bootstrap.min.js"
pin "datatables.net", to: "jquery.dataTables.min.js" # Assuming this is how you want to import it
# If Bootstrap requires Popper.js, and you have it in vendor/assets/javascripts/
# pin "@popperjs/core", to: "popper.min.js" # Or the actual filename if different
# Pin all files in app/javascript/controllers (if you use Stimulus, not explicitly requested yet)
# pin_all_from "app/javascript/controllers", under: "controllers"
# Pin all JS files from app/javascript directory. They can be imported by their path relative to app/javascript.
# For example, if you have app/javascript/custom/my_script.js, you can import it as import "custom/my_script";
pin_all_from "app/javascript", under: "app/javascript"

View File

@@ -1,12 +0,0 @@
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = "1.0"
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w[ admin.js admin.css ]