Sha256: 94b5907fab0a5a005e1b20f466521597bc74907b9110fb7c2ee7fd1a0b78cea4

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

module Quilt
  class ReactAppGenerator < Rails::Generators::Base
    source_root File.expand_path('templates', __dir__)

    desc "This generator adds a React app."

    def create_app_file
      copy_file("App.tsx", "app/ui/index.tsx")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quilt_rails-3.0.0 lib/generators/quilt/react_app/react_app_generator.rb
quilt_rails-2.0.0 lib/generators/quilt/react_app/react_app_generator.rb
quilt_rails-1.13.0 lib/generators/quilt/react_app/react_app_generator.rb