Sha256: 91690729567c37f649c8210222a0d1b36c2a4bd08acae718a156a073fd44ce1c

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

gsub_file Rails.root.join("app/views/layouts/application.html.erb").to_s, 
/<body>/, '<body class="<%= specific_page_vue %>">'

pack_tag = <<-eos
    <%= javascript_pack_tag 'application' %>
    <%= stylesheet_pack_tag 'application' %>
eos

# say "Added javascript_packs_tag and stylesheet_packs_tag into head"
insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s,
pack_tag,
before: "  </head>\n"

vue_on_rails = <<-eos
    //= vue-on-rails
eos

insert_into_file Rails.root.join("app/assets/javascripts/application.js").to_s,
vue_on_rails,
before: "//= require_tree ."

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
vueonrails-0.1.0 lib/install/spv.rb
vuejs-1.1.0.beta9 lib/install/spv.rb