Sha256: 08dbbb2a9c8a46aaeadb059ea540433d5fa699357ec477f6bc7579b7cb4bb0af

Contents?: true

Size: 496 Bytes

Versions: 62

Compression:

Stored size: 496 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" do
  "\n" + open("#{__dir__}/examples/stimulus/application.js").read
end

say "Creating controllers directory"
directory "#{__dir__}/examples/stimulus/controllers", "#{Webpacker.config.source_path}/controllers"

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

say "Webpacker now supports Stimulus.js 🎉", :green

Version data entries

62 entries across 62 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/stimulus.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/stimulus.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/stimulus.rb
jetpacker-0.7.0 lib/install/stimulus.rb
webpacker-5.4.4 lib/install/stimulus.rb
jetpacker-0.6.0 lib/install/stimulus.rb
webpacker-5.4.3 lib/install/stimulus.rb
webpacker-5.4.2 lib/install/stimulus.rb
webpacker-5.4.1 lib/install/stimulus.rb
webpacker-5.4.0 lib/install/stimulus.rb
webpacker-5.3.0 lib/install/stimulus.rb
webpacker-5.2.2 lib/install/stimulus.rb
jetpacker-0.5.0 lib/install/stimulus.rb
webpacker-5.2.1 lib/install/stimulus.rb
webpacker-4.3.0 lib/install/stimulus.rb
webpacker-5.2.0 lib/install/stimulus.rb
webpacker-5.1.1 lib/install/stimulus.rb
webpacker-5.1.0 lib/install/stimulus.rb
webpacker-5.0.1 lib/install/stimulus.rb
webpacker-5.0.0 lib/install/stimulus.rb