The app was generated with 'rails new --skip', which skipped the JavaScript install step, leaving bin/importmap missing and bin/ci's importmap audit failing. Run the importmap, turbo, and stimulus install generators to wire up Hotwire per PRD 10.1/10.2 and restore bin/ci.
8 lines
285 B
Ruby
8 lines
285 B
Ruby
# Pin npm packages by running ./bin/importmap
|
|
|
|
pin "application"
|
|
pin "@hotwired/turbo-rails", to: "turbo.min.js"
|
|
pin "@hotwired/stimulus", to: "stimulus.min.js"
|
|
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
|
pin_all_from "app/javascript/controllers", under: "controllers"
|