Sha256: 5300f6e140ff8eb72be6cbd61db30b733769df4d413d82e11896ded986606205
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
module Svelte class InstallGenerator < Rails::Generators::Base desc "This generator installs actionview-svelte-handler" source_root File.expand_path("templates/install", __dir__) def install copy_file "initializer.rb", "config/initializers/svelte.rb" insert_into_file "app/views/layouts/application.html.erb", "\n <%= svelte_tags %>", after: "<head>" `npm link #{Gem::Specification.find_by_name("actionview-svelte-handler").gem_dir} --save` `npm install` end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionview-svelte-handler-0.7.0 | lib/generators/svelte/install_generator.rb |
actionview-svelte-handler-0.6.0 | lib/generators/svelte/install_generator.rb |