Sha256: 1fb154736af58f32fb792f89e25ec96f5dac8b9dab3432d7ef6bd19f5b26d65a
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb") HIDE_ON_MOBILE_STYLE = <<-HTML.chomp <% if turbo_native_app? %> <style>.hide-on-mobile { display: none; }</style> <% end %> HTML say "Copy bridge controllers" directory "#{__dir__}/app/javascript/controllers/bridge", "app/javascript/controllers/bridge" say "Copy strada stylesheet" copy_file "#{__dir__}/app/assets/stylesheets/strada.css", "app/assets/stylesheets/strada.css" say "Add hide-on-mobile style in application layout" insert_into_file APPLICATION_LAYOUT_PATH.to_s, "\n\n#{HIDE_ON_MOBILE_STYLE}", before: /\s*<\/head>/ say "Install Strada" run "yarn add @hotwired/strada"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strada-rails-0.0.2 | lib/install/strada_with_node.rb |
strada-rails-0.0.1 | lib/install/strada_with_node.rb |