Sha256: 1a57d4e3bb715a239203d1902a860d15934d70d9a69cd69ca704903abaa2716e
Contents?: true
Size: 404 Bytes
Versions: 4
Compression:
Stored size: 404 Bytes
Contents
APP_JS_ROOT = Rails.root.join("app/assets/javascripts") say "Import Stimulus autoloader in existing app/assets/javascripts/application.js" append_to_file APP_JS_ROOT.join("application.js"), %(import "@hotwired/stimulus-autoloader"\n) say "Creating controllers directory" copy_file "#{__dir__}/app/assets/javascripts/controllers/hello_controller.js", APP_JS_ROOT.join("controllers/hello_controller.js")
Version data entries
4 entries across 4 versions & 1 rubygems