Sha256: 9fec5c020a9e14084f1c45971bcec8c35bf231e19fa03b9004bfa9602bba75ce
Contents?: true
Size: 800 Bytes
Versions: 5
Compression:
Stored size: 800 Bytes
Contents
class Gintonic::JsGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def create_structure create_file "app/assets/javascripts/libs/.keep", "" create_file "app/assets/javascripts/modules/.keep", "" create_file "app/assets/javascripts/blocks/.keep", "" end def copy_ready_js template 'ready.js', File.join(destination_root, 'app/assets/javascripts/ready.js') end def copy_application_js template 'application.js', File.join(destination_root, 'app/assets/javascripts/application.js') end def install_jquery_turbolinks begin gem 'jquery-turbolinks' rescue Errno::ENOENT say_status("warning", "It seems you don't have any Gemfile. I hope you are in the dummy app.", :yellow) end end end
Version data entries
5 entries across 5 versions & 1 rubygems