Sha256: 0a58bb6b90989e6f151c864955bdbbfecc6346d3c65f1189a06d1b0bdda9b768
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true module Quilt class ReactSetupGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) desc "This generator adds a React app." def install_js_dependencies say "Installing @shopify/react-server and @shopify/sewing-kit dependencies" system("yarn add "\ "@shopify/sewing-kit "\ "@shopify/react-server "\ "typescript@~3.8.0 "\ "react@~16.11.0 "\ "react-dom@~16.11.0 "\ "@types/react@~16.9.0 "\ "@types/react-dom@~16.9.0 ") unless Rails.env.test? end def create_tsconfig copy_file("tsconfig.json") end end end
Version data entries
3 entries across 3 versions & 1 rubygems