Sha256: 375ffc37b6161f9d01c6a53cdaf37a34c6dd9b302746a3c8eaffefcc83ae14b9
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
if (js_entrypoint_path = Rails.root.join("app/javascript/application.js")).exist? say "Appending Stimulus setup code to JavaScript entrypoint" append_to_file "app/javascript/application.js", %(\nimport "controllers") else end say "Creating controllers directory" directory "#{__dir__}/app/javascript/controllers", "app/javascript/controllers" say "Add @hotwired/stimulus package"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stimulus-rails-0.4.2 | lib/install/install.rb |
stimulus-rails-0.4.1 | lib/install/install.rb |
stimulus-rails-0.4.0 | lib/install/install.rb |