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

Version Path
stimulus-rails-0.3.3 lib/install/stimulus_with_asset_pipeline.rb
stimulus-rails-0.3.2 lib/install/stimulus_with_asset_pipeline.rb
stimulus-rails-0.3.1 lib/install/stimulus_with_asset_pipeline.rb
stimulus-rails-0.3.0 lib/install/stimulus_with_asset_pipeline.rb