Sha256: 3355e10eaebcbde714841afbff07fe672c2933f7c480e9087709c9bf27c57624

Contents?: true

Size: 521 Bytes

Versions: 7

Compression:

Stored size: 521 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/javascript/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

7 entries across 7 versions & 1 rubygems

Version Path
stimulus-rails-0.3.11 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.10 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.9 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.8 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.7 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.6 lib/install/stimulus_with_webpacker.rb
stimulus-rails-0.3.5 lib/install/stimulus_with_webpacker.rb