Sha256: 2ae6749545eae454397ef228e9947868940586ffe552e624e9cdcc88710bc0f2

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

say "Appending Stimulus setup code to #{Webpacker.config.source_entry_path}/application.js"
append_to_file "#{Webpacker.config.source_entry_path}/application.js", %(\nimport "controllers")

say "Creating controllers directory"
directory "#{__dir__}/app/assets/javascripts/controllers", "#{Webpacker.config.source_path}/controllers"

say "Using Stimulus NPM package"
gsub_file "#{Webpacker.config.source_path}/controllers/hello_controller.js", /@hotwired\//, ''

say "Installing all Stimulus dependencies"
run "yarn add stimulus"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stimulus-rails-0.3.4 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.3 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.2 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.1 lib/install/stimulus_with_webpacker.rb